java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxTetrahedronMeshGeometry
Tetrahedron mesh geometry class.
This class wraps a tetrahedron mesh such that it can be used in contexts where a PxGeometry type is needed.
-
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
ConstructorsModifierConstructorDescriptionprotectedprotectedPxTetrahedronMeshGeometry(long address) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic PxTetrahedronMeshGeometryarrayGet(long baseAddress, int index) A reference to the mesh object.booleanisValid()Returns true if the geometry is valid.voidA reference to the mesh object.static PxTetrahedronMeshGeometrywrapPointer(long address) Methods inherited from class physx.geometry.PxGeometry
destroy, getTypeMethods 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
-
PxTetrahedronMeshGeometry
protected PxTetrahedronMeshGeometry() -
PxTetrahedronMeshGeometry
protected PxTetrahedronMeshGeometry(long address) -
PxTetrahedronMeshGeometry
Constructor. By default creates an empty object with a NULL mesh and identity scale.
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getTetrahedronMesh
A reference to the mesh object. -
setTetrahedronMesh
A reference to the mesh object. -
isValid
public boolean isValid()Returns true if the geometry is valid.- Returns:
- True if the current settings are valid for shape creation.
Note: A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
-