Skip to content

Commit 2b95f76

Browse files
updated to use wrapper for stackblitz iframe. Implemented hex house concepts.
1 parent 0a13bd9 commit 2b95f76

File tree

5 files changed

+416
-49
lines changed

5 files changed

+416
-49
lines changed

docs/learn/npm-packages/babylonjs/advanced-parametric-3d-model.mdx renamed to docs/learn/npm-packages/babylonjs/advanced-parametric-3d-model.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description: "Learn how to build an advanced, interactive parametric 3D model us
66
tags: [npm-packages, babylonjs]
77
---
88

9+
import BitByBitRenderCanvas from '@site/src/components/BitByBitRenderCanvas';
910
import Tabs from '@theme/Tabs';
1011
import TabItem from '@theme/TabItem';
1112
import CodeBlock from '@theme/CodeBlock';
@@ -40,21 +41,11 @@ Through this example, you will learn to:
4041

4142
We are providing a higher level explanations of the codebase below, but for working reference always check this live example on StackBlitz, which, as platform evolves could change slightly.
4243

43-
<div className="stackblitz-embed-container">
44-
<iframe
45-
src="https://stackblitz.com/edit/hex-shell-babylonjs-bitbybit-for-docs?ctl=1&embed=1&file=src%2Fmain.ts&theme=dark"
46-
style={{
47-
width: '100%',
48-
height: '700px',
49-
border: '0',
50-
borderRadius: '4px',
51-
overflow: 'hidden',
52-
}}
53-
title="Advanced Parametric 3D Model with Babylon.js & Bitbybit"
54-
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
55-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
56-
></iframe>
57-
</div>
44+
<BitByBitRenderCanvas
45+
requireManualStart={true}
46+
iframeUrl="https://stackblitz.com/edit/hex-shell-babylonjs-bitbybit-for-docs?embed=1&file=src%2Fmain.ts&theme=dark"
47+
title="StackBlitz - Advanced Parametric 3D Model"
48+
/>
5849

5950
### Find the source code on [Bitbybit GitHub Examples](https://github.com/bitbybit-dev/bitbybit/tree/master/examples/vite/babylonjs/hex-shell)
6051

0 commit comments

Comments
 (0)