Package physx.geomutils
Class PxTriangleMeshGeometry
- java.lang.Object
-
- physx.NativeObject
-
- physx.geomutils.PxGeometry
-
- physx.geomutils.PxTriangleMeshGeometry
-
public class PxTriangleMeshGeometry extends PxGeometry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxTriangleMeshGeometry()protectedPxTriangleMeshGeometry(long address)PxTriangleMeshGeometry(PxTriangleMesh mesh)PxTriangleMeshGeometry(PxTriangleMesh mesh, PxMeshScale scaling)PxTriangleMeshGeometry(PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxTriangleMeshGeometrycreateAt(long address, PxTriangleMesh mesh)static PxTriangleMeshGeometrycreateAt(long address, PxTriangleMesh mesh, PxMeshScale scaling)static PxTriangleMeshGeometrycreateAt(long address, PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)static <T> PxTriangleMeshGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh)static <T> PxTriangleMeshGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh, PxMeshScale scaling)static <T> PxTriangleMeshGeometrycreateAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)voiddestroy()booleanisValid()static PxTriangleMeshGeometrywrapPointer(long address)-
Methods inherited from class physx.geomutils.PxGeometry
getType
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PxTriangleMeshGeometry
protected PxTriangleMeshGeometry()
-
PxTriangleMeshGeometry
protected PxTriangleMeshGeometry(long address)
-
PxTriangleMeshGeometry
public PxTriangleMeshGeometry(PxTriangleMesh mesh)
- Parameters:
mesh- WebIDL type:PxTriangleMesh
-
PxTriangleMeshGeometry
public PxTriangleMeshGeometry(PxTriangleMesh mesh, PxMeshScale scaling)
- Parameters:
mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]
-
PxTriangleMeshGeometry
public PxTriangleMeshGeometry(PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)
- Parameters:
mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]flags- WebIDL type:PxMeshGeometryFlags[Ref]
-
-
Method Detail
-
wrapPointer
public static PxTriangleMeshGeometry wrapPointer(long address)
-
createAt
public static PxTriangleMeshGeometry createAt(long address, PxTriangleMesh mesh)
- Parameters:
address- Pre-allocated memory, where the object is created.mesh- WebIDL type:PxTriangleMesh- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
createAt
public static <T> PxTriangleMeshGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh)
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.mesh- WebIDL type:PxTriangleMesh- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
createAt
public static PxTriangleMeshGeometry createAt(long address, PxTriangleMesh mesh, PxMeshScale scaling)
- Parameters:
address- Pre-allocated memory, where the object is created.mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
createAt
public static <T> PxTriangleMeshGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh, PxMeshScale scaling)
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
createAt
public static PxTriangleMeshGeometry createAt(long address, PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)
- Parameters:
address- Pre-allocated memory, where the object is created.mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]flags- WebIDL type:PxMeshGeometryFlags[Ref]- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
createAt
public static <T> PxTriangleMeshGeometry createAt(T allocator, NativeObject.Allocator<T> allocate, PxTriangleMesh mesh, PxMeshScale scaling, PxMeshGeometryFlags flags)
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.mesh- WebIDL type:PxTriangleMeshscaling- WebIDL type:PxMeshScale[Const, Ref]flags- WebIDL type:PxMeshGeometryFlags[Ref]- Returns:
- Stack allocated object of PxTriangleMeshGeometry
-
destroy
public void destroy()
- Overrides:
destroyin classPxGeometry
-
isValid
public boolean isValid()
- Returns:
- WebIDL type: boolean
-
-