Class GeometryData

    • 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.
        Parameters:
        forceCopy - 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.

        Returns:
        TriMesh representation of this GeometryData
      • isConvex

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

        public static java.lang.String toString​(GeometryData.GeometryType type)
        format GeometryType to string
        Parameters:
        type - [in] the type of geometry to convert to string.
        Returns:
        a string.