- Direct Known Subclasses:
PxTriangleMeshDesc
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
ConstructorsModifierConstructorDescriptionconstructor sets to default.protectedPxSimpleTriangleMesh(long address) -
Method Summary
Modifier and TypeMethodDescriptionstatic PxSimpleTriangleMesharrayGet(long baseAddress, int index) voiddestroy()getFlags()Flags bits, combined from values of the enum ::PxMeshFlagPointer to first vertex point.Pointer to first triangle.booleanisValid()returns true if the current settings are validvoidsetFlags(PxMeshFlags value) Flags bits, combined from values of the enum ::PxMeshFlagvoidsetPoints(PxBoundedData value) Pointer to first vertex point.void(re)sets the structure to the default.voidsetTriangles(PxBoundedData value) Pointer to first triangle.static PxSimpleTriangleMeshwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxSimpleTriangleMesh
protected PxSimpleTriangleMesh(long address) -
PxSimpleTriangleMesh
public PxSimpleTriangleMesh()constructor sets to default.
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getPoints
Pointer to first vertex point. -
setPoints
Pointer to first vertex point. -
getTriangles
Pointer to first triangle.Caller may add triangleStrideBytes bytes to the pointer to access the next triangle.
These are triplets of 0 based indices: vert0 vert1 vert2 vert0 vert1 vert2 vert0 vert1 vert2 ...
where vertex is either a 32 or 16 bit unsigned integer. There are numTriangles*3 indices.
This is declared as a void pointer because it is actually either an PxU16 or a PxU32 pointer.
-
setTriangles
Pointer to first triangle.Caller may add triangleStrideBytes bytes to the pointer to access the next triangle.
These are triplets of 0 based indices: vert0 vert1 vert2 vert0 vert1 vert2 vert0 vert1 vert2 ...
where vertex is either a 32 or 16 bit unsigned integer. There are numTriangles*3 indices.
This is declared as a void pointer because it is actually either an PxU16 or a PxU32 pointer.
-
getFlags
Flags bits, combined from values of the enum ::PxMeshFlag -
setFlags
Flags bits, combined from values of the enum ::PxMeshFlag -
setToDefault
public void setToDefault()(re)sets the structure to the default. -
isValid
public boolean isValid()returns true if the current settings are valid
-