I have been working on creating a custom three.js geometry for round staircases, but I seem to have made some errors with the vertices and indexes of the steps.
Below is an example staircase that utilizes my custom geometry:
https://i.sstatic.net/uQXvP.jpg
The issue lies in the code at functions generateStepTops Line 177, generateStepFronts Line 259, and generateStepSide Line 338
var renderer, scene, camera, controls;
// Code continues...
body {
margin: 0;
overflow: hidden;
}
canvas {
width: 100%;
height: 100%
}
<script src="https://threejs.org/build/three.min.js"></script>
<script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>
The part where the problem seems to be occurring:
for (var stepIndex = 0; stepIndex <= stepSegments; stepIndex++) {
// Code snippet continues...
}