Class CM3ItemSphere extends CM3Item
CM3ItemSphere Class
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 | sphere radius. Default is 1. | |
widthSegments | Number of Horizontal Segments | CMTYPE_INTEGER | 16,Range:[3,Infinity] | number of horizontal segments. Minimum value is 3, and the default is 8. | |
heightSegments | Number of Vertical Segements | CMTYPE_INTEGER | 16,Range:[2,Infinity] | number of vertical segments. Minimum value is 2, and the default is 6. | |
phiStart | Horizontal Start Angle | CMTYPE_FLOAT | 0,Range:[0,Math.PI*2] | specify horizontal starting angle. Default is 0. | |
phiLength | Horizontal Sweep Angle | CMTYPE_FLOAT | Math.PI*2,Range:[0,Math.PI*2] | specify horizontal sweep angle size. Default is Math.PI * 2. | |
thetaStart | Vertical Start Angle | CMTYPE_FLOAT | 0,Range:[0,Math.PI*2] | specify vertical starting angle. Default is 0. | |
thetaLength | Vertical Sweep Angle | CMTYPE_FLOAT | Math.PI*2,Range:[0,Math.PI*2] | specify vertical sweep angle size. Default is Math.PI. |