Class PxHeightField


  • public class PxHeightField
    extends PxBase
    • Constructor Detail

      • PxHeightField

        protected PxHeightField()
      • PxHeightField

        protected PxHeightField​(long address)
    • Method Detail

      • wrapPointer

        public static PxHeightField wrapPointer​(long address)
      • 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
      • getSampleStride

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

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

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

        public int getReferenceCount()
        Returns:
        WebIDL type: unsigned long
      • acquireReference

        public void acquireReference()
      • 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