Class IndexedTriArrayCPtr


  • public class IndexedTriArrayCPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • IndexedTriArrayCPtr

        public IndexedTriArrayCPtr​(long cPtr,
                                   boolean cMemoryOwn)
      • IndexedTriArrayCPtr

        public IndexedTriArrayCPtr()
        Default constructor yielding a NULL-pointer.
      • IndexedTriArrayCPtr

        public IndexedTriArrayCPtr​(IndexedTriArray ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • getIndexes

        public vector_ui getIndexes()
        get the index mapping
      • getGlobalIndex

        public long getGlobalIndex​(int idx)
      • getTriangle

        public Triangle getTriangle​(long idx)
      • getTriangle

        public void getTriangle​(long i,
                                Triangle dst)
      • getTriangle

        public void getTriangle​(long i,
                                Triangle_f dst)
      • getSize

        public long getSize()
      • size

        public long size()
      • getVolume

        public double getVolume()
        calculate a volume of this triangle mesh