Class CM3ItemTorus extends CM3Item
CM3ItemTorus Class
THREE.js documentation: https://threejs.org/docs/#api/en/geometries/TorusGeometry
Copyright (C) 2020, Humboldt State University, Jim Graham
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see
Settings Group: Dimensions
Setting | Name | Type | Options | Default | Comments |
---|---|---|---|---|---|
radius | radius | CMTYPE_FLOAT | 10 | Radius of the torus, from the center of the torus to the center of the tube. Default is 1. | |
tube | tube | CMTYPE_FLOAT | 8,Range:[3,Infinity] | Radius of the tube. Default is 0.4. | |
radialSegments | radialSegments | CMTYPE_INTEGER | 6,Range:[2,Infinity] | Number of segements dividing up the torus as it goes around to form a ring | |
tubularSegments | tubularSegments | CMTYPE_INTEGER | 6,Range:[0,Math.PI*2] | Number of segment of each tube in the torus | |
arc | arc | CMTYPE_FLOAT | Math.PI*2,Range:[0,Math.PI*2] | Central angle |