Class Primitive

    • Constructor Detail

      • Primitive

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

      • getCPtr

        public static long getCPtr​(Primitive obj)
      • getTriMesh

        public TriMeshPtr getTriMesh​(boolean forceCopy)
        Description copied from class: GeometryData
        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.
        Overrides:
        getTriMesh in class GeometryData
        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()
        Description copied from class: GeometryData
        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.

        Overrides:
        getTriMesh in class GeometryData
        Returns:
        TriMesh representation of this GeometryData
      • createMesh

        public TriMeshPtr createMesh​(int resolution)
      • getParameters

        public Q getParameters()