(i, count)
| 70 | } |
| 71 | |
| 72 | function 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 | |
| 90 | function createTorus(i, count) { |
| 91 | // Torus parameters |
nothing calls this directly
no outgoing calls
no test coverage detected