Package com.openinventor.inventor.nodes
Class SoAlgebraicCone
- All Implemented Interfaces:
SafeDisposable
Algebraic cone shape node.
This node represents a simple cone whose central axis is aligned with the y-axis. By default, the cone is centered at (0,0,0) and has a size of -1 to +1 in all three directions. The cone has a radius of 1 at the bottom and a height of 2, with its apex at 1.
The cone 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 SoCone
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:
AlgebraicCone {
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.ASWorkSpaces
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoShape
SoShape.ShapeTypes
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFBool
Specifies if cone is capped or not.final SoSFFloat
Specifies the cone's height.final SoSFFloat
Specifies the radius of the base circle.Fields inherited from class com.openinventor.inventor.nodes.SoAlgebraicShape
generateTransparency, rayIntersection, shaderSlots, workspace
Fields inherited from class com.openinventor.inventor.nodes.SoShape
boundingBoxIgnoring
Fields 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, isPrimitiveRestartAvailable
Methods 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, write
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
height
Specifies the cone's height. Value must be greater than 0.0. Default is 2. -
radius
Specifies the radius of the base circle. Value must be greater than 0.0. Default is 1. -
capped
Specifies if cone is capped or not. Default is true.
-
-
Constructor Details
-
SoAlgebraicCone
public SoAlgebraicCone()Default constructor.
-