Package com.openinventor.inventor.nodes
Class SoAlgebraicCylinder
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoBase
com.openinventor.inventor.fields.SoFieldContainer
com.openinventor.inventor.nodes.SoNode
com.openinventor.inventor.nodes.SoShape
com.openinventor.inventor.nodes.SoAlgebraicShape
com.openinventor.inventor.nodes.SoAlgebraicCylinder
- All Implemented Interfaces:
SafeDisposable
Algebraic cylinder shape node.
This node represents a simple capped cylinder centered around the y-axis. By default, the cylinder is centered at (0,0,0) and has a default size of -1 to +1 in all three dimensions. You can use the
radius and height fields to create a cylinder with a different size.
The cylinder is transformed by the current cumulative transformation and is drawn with the current lighting model and material.
This node can generally be used in place of the SoCylinder geometric shape node. Unlike the geometric shape nodes, which create triangle geometry to represent their shape, the algebraic shape nodes compute and render their shape on the GPU. Algebraic shapes can also be used with SoMultipleInstance to efficiently render a very large number of shapes.
Please see SoAlgebraicShape for important notes and limitations for algebraic shapes.
File format/default:
AlgebraicCylinder {
| radius | 1 |
| height | 2 |
| capping | true |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoAlgebraicShape
SoAlgebraicShape.ASClippingPolicies, SoAlgebraicShape.ASShaderSlots, SoAlgebraicShape.ASWorkSpacesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoShape
SoShape.ShapeTypesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFBoolSpecifies if cylinder is capped or not.final SoSFFloatSpecifies the cylinder's height.final SoSFFloatSpecifies the cylinder's radius.Fields inherited from class com.openinventor.inventor.nodes.SoAlgebraicShape
generateTransparency, rayIntersection, shaderSlots, workspaceFields inherited from class com.openinventor.inventor.nodes.SoShape
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoShape
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailableMethods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
height
Specifies the cylinder's height. Value must be greater than 0.0. Default is 2. -
radius
Specifies the cylinder's radius. Value must be greater than 0.0. Default is 1. -
capped
Specifies if cylinder is capped or not. Default is true.
-
-
Constructor Details
-
SoAlgebraicCylinder
public SoAlgebraicCylinder()Default constructor.
-