VisualSim.simulators.gr.lib
Class Cone3D


public class Cone3D
extends GRShadedShape

This actor contains the geometry and appearance specifications for a cone. The output port is used to connect this actor to the Java3D scene graph. This actor will only have meaning in the GR domain. The radius parameter specifies the radius of the circular base. The height parameter specifies the height of the cone.

Since:
VisualSim1.0


Field Detail

circleDivisions

public VisualSim.data.expr.Parameter circleDivisions
The number of divisions in the circle forming the base of the cone. This is an integer with default value "max(6, roundToInt(radius * 100))". This parameter determines the resolution of the cone, which is approximated as a surface composed of triangular facets. Increasing this value makes the surface smoother, but also increases the cost of rendering.

height

public VisualSim.data.expr.Parameter height
The height of the cone. This is a double that defaults to 0.5.

sideDivisions

public VisualSim.data.expr.Parameter sideDivisions
The number of divisions on the side of the cone. This is an integer with default value "1". This parameter probably only needs to change when the wireFrame parameter is set to true.

radius

public VisualSim.data.expr.Parameter radius
The radius of the base of the cone. This is a double that defaults to 0.7.