Skip to content

Commit

Permalink
Staircase examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsturges committed Nov 16, 2024
1 parent 8e09a94 commit cd086ed
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 20 deletions.
10 changes: 6 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ <h2>Models</h2>
<div>
<header>Architecture</header>
<ul>
<li><a href="/three-low-poly/models/architecture/bifurcated-staircase">Bifurcated Staircase</a></li>
<li><a href="/three-low-poly/models/architecture/diorama">Diorama</a></li>
<li><a href="/three-low-poly/models/architecture/l-shaped-staircase">L-Shaped Staircase</a></li>
<li><a href="/three-low-poly/models/architecture/staircase">Staircase</a></li>
<li><a href="/three-low-poly/models/architecture/spiral-staircase">Spiral Staircase</a></li>
<li><a href="/three-low-poly/models/architecture/staircase-bifurcated">Staircase (Bifurcated)</a></li>
<li><a href="/three-low-poly/models/architecture/staircase-l-shaped">Staircase (L-Shaped)</a></li>
<li><a href="/three-low-poly/models/architecture/staircase-spiral">Staircase (Spiral)</a></li>
</ul>
</div>

Expand Down Expand Up @@ -188,7 +188,9 @@ <h2>Reference</h2>
<li><a href="/three-low-poly/reference/easing-lines">Easing (Lines)</a></li>
<li><a href="/three-low-poly/reference/easing-lathe">Easing (Lathe)</a></li>
<li><a href="/three-low-poly/reference/interpolate-curve-lathe-points">Interpolate Curve (Lathe Points)</a></li>
<li><a href="/three-low-poly/reference/interpolate-curve-lathe-catmull-rom">Interpolate Curve (Lathe Catmull-Rom)</a></li>
<li>
<a href="/three-low-poly/reference/interpolate-curve-lathe-catmull-rom">Interpolate Curve (Lathe Catmull-Rom)</a>
</li>
<li><a href="/three-low-poly/reference/lights">Lights</a></li>
<li><a href="/three-low-poly/reference/material-standard">Material Standard (Metalness)</a></li>
<li><a href="/three-low-poly/reference/material-physics-clearcoat">Material Physics (Clearcoat)</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
<script type="module">
import * as THREE from "three";
import { BifurcatedStaircaseGeometry } from "../../../src/index.js";
import { createOrbitScene } from "../../utils/orbitScene.js";
import { createOrthographicScene } from "../../utils/orthographicScene.js";

const { scene, camera, controls } = createOrbitScene();
camera.position.set(0, 1, 2);
controls.target.set(0, 1, 0);
const { scene, camera, controls } = createOrthographicScene();

const bifurcatedStaircaseGeometry = new BifurcatedStaircaseGeometry(2, 0.3, 0.5, 5, 5, Math.PI / 4);
const material = new THREE.MeshStandardMaterial({ color: 0x8b4513, side: THREE.DoubleSide });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
<script type="module">
import * as THREE from "three";
import { LShapedStaircaseGeometry } from "../../../src/index.js";
import { createOrbitScene } from "../../utils/orbitScene.js";
import { createOrthographicScene } from "../../utils/orthographicScene.js";

const { scene, camera, controls } = createOrbitScene();
camera.position.set(0, 1, 2);
controls.target.set(0, 1, 0);
const { scene, camera, controls } = createOrthographicScene();

const lShapedStaircaseGeometry = new LShapedStaircaseGeometry(2, 0.3, 0.5, 5, 2);
const material = new THREE.MeshStandardMaterial({ color: 0x8b4513, side: THREE.DoubleSide });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
<script type="module">
import * as THREE from "three";
import { SpiralStaircaseGeometry } from "../../../src/index.js";
import { createOrbitScene } from "../../utils/orbitScene.js";
import { createOrthographicScene } from "../../utils/orthographicScene.js";

const { scene, camera, controls } = createOrbitScene();
camera.position.set(0, 3, 5);
controls.target.set(0, 2, 0);
const { scene, camera, controls } = createOrthographicScene();

const spiralStaircaseGeometry = new SpiralStaircaseGeometry(2, 0.8, 0.2, 20, 1, Math.PI / 8);
const material = new THREE.MeshStandardMaterial({ color: 0x8b4513, side: THREE.DoubleSide });
Expand Down
6 changes: 2 additions & 4 deletions examples/models/architecture/staircase.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
<script type="module">
import * as THREE from "three";
import { StaircaseGeometry } from "../../../src/index.js";
import { createOrbitScene } from "../../utils/orbitScene.js";
import { createOrthographicScene } from "../../utils/orthographicScene.js";

const { scene, camera, controls } = createOrbitScene();
camera.position.set(0, 1, 2);
controls.target.set(0, 1, 0);
const { scene, camera, controls } = createOrthographicScene();

const staircaseGeometry = new StaircaseGeometry(2, 0.3, 0.5, 10);
const material = new THREE.MeshStandardMaterial({ color: 0x8b4513, side: THREE.DoubleSide });
Expand Down

0 comments on commit cd086ed

Please sign in to comment.