Package physx.cooking

Class PxBVH34MidphaseDesc

java.lang.Object
physx.NativeObject
physx.cooking.PxBVH34MidphaseDesc

public class PxBVH34MidphaseDesc extends NativeObject
Structure describing parameters affecting BVH34 midphase mesh structure.
See Also:
  • 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

      public static PxBVH34MidphaseDesc wrapPointer(long address)
    • arrayGet

      public static PxBVH34MidphaseDesc arrayGet(long baseAddress, int index)
    • 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.