CanvasMap
Getting Started Tutorials 3D Reference

Class CM3ItemTorusKnot extends CM3Item

CM3ItemTorusKnot Class

THREE.js documentation: https://threejs.org/docs/#api/en/geometries/TorusKnotBufferGeometry

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 2,Range:[0,Infinity] Radius of the tube. Default is 0.4.
tubularSegments tubularSegments CMTYPE_INTEGER 64,Range:[2,Infinity] Number of segment of each tube in the torus
radialSegments radialSegments CMTYPE_INTEGER 8,Range:[2,Infinity] Number of segements dividing up the torus as it goes around to form a ring
p p CMTYPE_INTEGER 2,Range:[1,Infinity] This value determines, how many times the geometry winds around its axis of rotational symmetry
q q CMTYPE_INTEGER 3,Range:[1,Infinity] This value determines, how many times the geometry winds around a circle in the interior of the torus.