Class PxTetrahedronMeshGeometry

java.lang.Object
physx.NativeObject
physx.geometry.PxGeometry
physx.geometry.PxTetrahedronMeshGeometry

public class PxTetrahedronMeshGeometry extends PxGeometry
Tetrahedron mesh geometry class.

This class wraps a tetrahedron mesh such that it can be used in contexts where a PxGeometry type is needed.

  • 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

      public PxTetrahedronMeshGeometry(PxTetrahedronMesh mesh)
      Constructor. By default creates an empty object with a NULL mesh and identity scale.
  • Method Details

    • wrapPointer

      public static PxTetrahedronMeshGeometry wrapPointer(long address)
    • arrayGet

      public static PxTetrahedronMeshGeometry arrayGet(long baseAddress, int index)
    • getTetrahedronMesh

      public PxTetrahedronMesh getTetrahedronMesh()
      A reference to the mesh object.
    • setTetrahedronMesh

      public void setTetrahedronMesh(PxTetrahedronMesh value)
      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 PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.