public class SoPrimitiveVertex extends Inventor implements java.lang.Cloneable
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.
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPrimitiveVertex()
Default constructor.
|
SoPrimitiveVertex(SoPrimitiveVertex pv)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
SoDetail |
getDetail()
Returns the detail giving more information about the vertex.
|
int |
getMaterialIndex()
Returns the index into the current set of materials of the material active at the vertex.
|
SbVec3f |
getNormal()
Returns the normal in object space.
|
SbVec3f |
getPoint()
Returns the surface point in object space.
|
SoPointDetail |
getPointDetail()
Returns the point detail giving more information about the vertex.
|
SbVec4f |
getTextureCoords()
Returns the texture coordinates in object space.
|
void |
setValue(SoPrimitiveVertex copyFrom) |
static SoPrimitiveVertex[] |
toArray(long nativeArray,
long length) |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoPrimitiveVertex()
public SoPrimitiveVertex(SoPrimitiveVertex pv)
public java.lang.Object clone()
clone
in class java.lang.Object
public void setValue(SoPrimitiveVertex copyFrom)
public static SoPrimitiveVertex[] toArray(long nativeArray, long length)
public SbVec3f getPoint()
public SbVec3f getNormal()
public SbVec4f getTextureCoords()
public SoDetail getDetail()
public SoPointDetail getPointDetail()
public int getMaterialIndex()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com