Class PxHeightField


public class PxHeightField extends PxRefCounted
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxHeightField

      protected PxHeightField()
    • PxHeightField

      protected PxHeightField(long address)
  • Method Details

    • wrapPointer

      public static PxHeightField wrapPointer(long address)
    • arrayGet

      public static PxHeightField arrayGet(long baseAddress, int index)
    • saveCells

      public int saveCells(NativeObject destBuffer, int destBufferSize)
      Parameters:
      destBuffer - WebIDL type: VoidPtr
      destBufferSize - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned long
    • modifySamples

      public boolean modifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc)
      Parameters:
      startCol - WebIDL type: long
      startRow - WebIDL type: long
      subfieldDesc - WebIDL type: PxHeightFieldDesc [Const, Ref]
      Returns:
      WebIDL type: boolean
    • modifySamples

      public boolean modifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc, boolean shrinkBounds)
      Parameters:
      startCol - WebIDL type: long
      startRow - WebIDL type: long
      subfieldDesc - WebIDL type: PxHeightFieldDesc [Const, Ref]
      shrinkBounds - WebIDL type: boolean
      Returns:
      WebIDL type: boolean
    • getNbRows

      public int getNbRows()
      Returns:
      WebIDL type: unsigned long
    • getNbColumns

      public int getNbColumns()
      Returns:
      WebIDL type: unsigned long
    • getFormat

      public PxHeightFieldFormatEnum getFormat()
      Returns:
      WebIDL type: PxHeightFieldFormatEnum [enum]
    • getSampleStride

      public int getSampleStride()
      Returns:
      WebIDL type: unsigned long
    • getConvexEdgeThreshold

      public float getConvexEdgeThreshold()
      Returns:
      WebIDL type: float
    • getFlags

      public PxHeightFieldFlags getFlags()
      Returns:
      WebIDL type: PxHeightFieldFlags [Value]
    • getHeight

      public float getHeight(float x, float z)
      Parameters:
      x - WebIDL type: float
      z - WebIDL type: float
      Returns:
      WebIDL type: float
    • getTriangleMaterialIndex

      public short getTriangleMaterialIndex(int triangleIndex)
      Parameters:
      triangleIndex - WebIDL type: unsigned long
      Returns:
      WebIDL type: unsigned short
    • getTriangleNormal

      public PxVec3 getTriangleNormal(int triangleIndex)
      Parameters:
      triangleIndex - WebIDL type: unsigned long
      Returns:
      WebIDL type: PxVec3 [Value]
    • getSample

      public PxHeightFieldSample getSample(int row, int column)
      Parameters:
      row - WebIDL type: unsigned long
      column - WebIDL type: unsigned long
      Returns:
      WebIDL type: PxHeightFieldSample [Const, Ref]
    • getTimestamp

      public int getTimestamp()
      Returns:
      WebIDL type: unsigned long