java.lang.Object
physx.NativeObject
physx.cooking.PxBVH34MidphaseDesc
Structure describing parameters affecting BVH34 midphase mesh structure.
- See Also:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBVH34MidphaseDescarrayGet(long baseAddress, int index) voiddestroy()intMesh cooking hint for max primitives per leaf limit.booleanisValid()Returns true if the descriptor is valid.voidsetNumPrimsPerLeaf(int value) Mesh cooking hint for max primitives per leaf limit.voidDesc initialization to default value.static PxBVH34MidphaseDescwrapPointer(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
-
PxBVH34MidphaseDesc
protected PxBVH34MidphaseDesc() -
PxBVH34MidphaseDesc
protected PxBVH34MidphaseDesc(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy() -
getNumPrimsPerLeaf
public int getNumPrimsPerLeaf()Mesh cooking hint for max primitives per leaf limit. Less primitives per leaf produces larger meshes with better runtime performance and worse cooking performance. More triangles per leaf results in faster cooking speed and smaller mesh sizes, but with worse runtime performance.Default value: 4 Range: <2, 15>
-
setNumPrimsPerLeaf
public void setNumPrimsPerLeaf(int value) Mesh cooking hint for max primitives per leaf limit. Less primitives per leaf produces larger meshes with better runtime performance and worse cooking performance. More triangles per leaf results in faster cooking speed and smaller mesh sizes, but with worse runtime performance.Default value: 4 Range: <2, 15>
-
setToDefault
public void setToDefault()Desc initialization to default value. -
isValid
public boolean isValid()Returns true if the descriptor is valid.- Returns:
- true if the current settings are valid.
-