MCPcopy Create free account
hub / github.com/collidingScopes/iron-interface / createHelix

Function createHelix

geometry.js:72–88  ·  view source on GitHub ↗
(i, count)

Source from the content-addressed store, hash-verified

70}
71
72function createHelix(i, count) {
73 const numHelices = 2;
74 const helixIndex = i % numHelices;
75 const t = Math.floor(i / numHelices) / Math.floor(count / numHelices);
76 const angle = t * Math.PI * 10;
77
78 // Fixed radius for surface-only distribution
79 const radius = 15;
80 const height = (t - 0.5) * 60;
81 const angleOffset = helixIndex * Math.PI;
82
83 return new THREE.Vector3(
84 Math.cos(angle + angleOffset) * radius,
85 Math.sin(angle + angleOffset) * radius,
86 height
87 );
88}
89
90function createTorus(i, count) {
91 // Torus parameters

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected