Package com.openinventor.inventor
Class SoPrimitiveVertex
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.SoPrimitiveVertex
- All Implemented Interfaces:
Cloneable
Represents a vertex of a generated primitive.
An
SoPrimitiveVertex
represents a vertex of a primitive (triangle, line segment, or point) that is being generated by an SoCallbackAction
. It contains an object-space point, normal, texture coordinates, material index, and refers an instance of an SoDetail
subclass. This detail may contain more information about the vertex, or may be NULL if there is no such info.
Instances of SoPrimitiveVertex
are typically created on the stack by shape classes while they are generating primitives. Anyone who wants to save them as return values from SoCallbackAction
should probably make copies of them.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the detail giving more information about the vertex.int
Returns the index into the current set of materials of the material active at the vertex.Returns the normal in object space.getPoint()
Returns the surface point in object space.Returns the point detail giving more information about the vertex.Returns the texture coordinates in object space.void
setValue
(SoPrimitiveVertex copyFrom) static SoPrimitiveVertex[]
toArray
(long nativeArray, long length) Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoPrimitiveVertex
public SoPrimitiveVertex()Default constructor. -
SoPrimitiveVertex
Constructor. Note that copying a primitive vertex copies the detail reference, and not the detail itself.
-
-
Method Details
-
clone
-
setValue
-
toArray
-
getPoint
Returns the surface point in object space. -
getNormal
Returns the normal in object space. -
getTextureCoords
Returns the texture coordinates in object space. -
getDetail
Returns the detail giving more information about the vertex. Note that the return value is NULL if there is no more info. -
getPointDetail
Returns the point detail giving more information about the vertex. Note that the return value is NULL if there is no more info. -
getMaterialIndex
public int getMaterialIndex()Returns the index into the current set of materials of the material active at the vertex.
-