Class SoPointDetail
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.details.SoDetail
-
- com.openinventor.inventor.details.SoPointDetail
-
public class SoPointDetail extends SoDetail
Stores detail information about vertex-based shapes made of points. This class contains detail information about a point in a vertex-based shape made of points. It is used for returning information about an intersection with or primitives generated by a set of points. It is also used bySoFaceDetail
andSoLineDetail
to return information about the vertices of faces and line segments.- See Also:
SoDetail
,SoPickedPoint
,SoPrimitiveVertex
,SoVertexShape
,SoFaceDetail
,SoLineDetail
-
-
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
Constructors Constructor Description SoPointDetail()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDetail
copy()
Returns an instance that is a copy of this instance.int
getCoordinateIndex()
Returns the index of the point within the relevant coordinate node.int
getMaterialIndex()
Returns the index of the material for the point within the relevant material node.int
getNormalIndex()
Returns the index of the surface normal at the point within the relevant normal node.SoPointDetail
getPoint(int i)
int
getTextureCoordIndex()
Returns the index of the texture coordinates for the point within the relevant normal node.void
setCoordinateIndex(int i)
void
setMaterialIndex(int i)
void
setNormalIndex(int i)
void
setTextureCoordIndex(int i)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
setMaterialIndex
public void setMaterialIndex(int i)
-
copy
public SoDetail copy()
Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
-
setNormalIndex
public void setNormalIndex(int i)
-
setCoordinateIndex
public void setCoordinateIndex(int i)
-
getTextureCoordIndex
public int getTextureCoordIndex()
Returns the index of the texture coordinates for the point within the relevant normal node. Note that if texture coordinates have been generated for a shape, the index may not be into an existing texture coordinate node.
-
getCoordinateIndex
public int getCoordinateIndex()
Returns the index of the point within the relevant coordinate node.
-
getPoint
public SoPointDetail getPoint(int i)
-
setTextureCoordIndex
public void setTextureCoordIndex(int i)
-
getNormalIndex
public int getNormalIndex()
Returns the index of the surface normal at the point within the relevant normal node. Note that if normals have been generated for a shape, the index may not be into an existing normal node.
-
getMaterialIndex
public int getMaterialIndex()
Returns the index of the material for the point within the relevant material node.
-
-