Submitted by Leonard Daly on
A new geometric primative that is the torus. See description in Fraunhofer's X3DOM documentation.
}
The Torus node creates geometry of the same name. The torus is a figure created by rotating a circle about a line external to the circle. The diameter of the circle is given by outerRadius-innerRadius. The line of rotation is innerRadius away from the perimeter of the circle. The circle is defined in the X-Y plane, and the line of rotation is the Y-axis.
angle is the angle from the initial position (in the +X-Y plane.that the circle is rotated through. Positive values rotate the circle counter-clockwise looking towards the -Y axis. If |angle| is not 2*pi, then caps determine if geometry is created for the end of the partial torus.
The resolution of the geometry is specified by subdivision. This field determines the number of faces around the outside perimeter and the rotated circle, respectively.
The insideOutsideRadius is tbd.
The geometry is displayed according the ccw, solid, and lit fields. These define the ordering of vertext coordinates of the external geometry with respot to the user-provided or automatically generated normal vectors (ccw); back-face culling (solid), and whether the external geometry is rendered with (TRUE) or without (FALSE) lighting.
The metadata field is the standard parent for node metadata.
Most geospatial primitives use a geo-chache. The useGeoCache field allows the developer to disable the cache for the created geometry.
- Log in to post comments