Class GeometryData

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GeometryData.GeometryType
      geometry data types
    • Constructor Summary

      Constructors 
      Constructor Description
      GeometryData​(long cPtr, boolean cMemoryOwn)  
    • Constructor Detail

      • GeometryData

        public GeometryData​(long cPtr,
                            boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(GeometryData obj)
      • delete

        public void delete()
      • getTriMesh

        public TriMeshPtr getTriMesh​(boolean forceCopy)
        gets a trimesh representation of this geometry data.

        The trimesh that is returned is by default a copy, which means
        ownership is transfered to the caller. Specifying forceCopy to false
        will enable copy by reference and ownership is not necesarilly transfered.
        This is more efficient, though pointer is only alive as long as this
        GeometryData is alive.

        Returns:
        TriMesh representation of this GeometryData
      • getTriMesh

        public TriMeshPtr getTriMesh()
        gets a trimesh representation of this geometry data.

        The trimesh that is returned is by default a copy, which means
        ownership is transfered to the caller. Specifying forceCopy to false
        will enable copy by reference and ownership is not necesarilly transfered.
        This is more efficient, though pointer is only alive as long as this
        GeometryData is alive.

        Returns:
        TriMesh representation of this GeometryData
      • isConvex

        public boolean isConvex()
        test if this geometry data is convex
        Returns:
        true if convex
      • toString

        public static java.lang.String toString​(GeometryData.GeometryType type)
        format GeometryType to string
        Parameters:
        type -