Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

threejs torus shape

const radius = 5;  
const tubeRadius = 2;  
const radialSegments = 8;  
const tubularSegments = 24;  
const geometry = new THREE.TorusGeometry(
    radius, tubeRadius,
    radialSegments, tubularSegments);
Source by threejsfundamentals.org #
 
PREVIOUS NEXT
Tagged: #threejs #torus #shape
ADD COMMENT
Topic
Name
5+6 =