VisualSim.simulators.gr.lib
Class Sphere3D
- public class Sphere3D
- extends GRShadedShape
This actor contains the geometry and appearance specifications for a
sphere. The output port is used to connect this actor to the Java3D scene
graph. This actor may be used along with the Scale3D transformer to produce
ellipsoid shapes. This actor will only have meaning in the GR domain.
Note that most of the parameters are described in the base class documentation.
- Since:
- VisualSim1.0
divisions
public VisualSim.data.expr.Parameter divisions
- The number of divisions in the sphere. This is an integer with
default value "max(6, roundToInt(radius * 300))". This parameter
determines the resolution of the sphere, which is approximated
as a surface composed of triangular facets. Increasing this
value makes the surface smoother, but also increases the cost
of rendering.
radius
public VisualSim.data.expr.Parameter radius
- The radius of the sphere. This is a double with default 0.1.