Package org.robwork.sdurw
Class Primitive
- java.lang.Object
-
- org.robwork.sdurw.GeometryData
-
- org.robwork.sdurw.Primitive
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robwork.sdurw.GeometryData
GeometryData.GeometryType
-
-
Constructor Summary
Constructors Constructor Description Primitive(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TriMeshPtrcreateMesh(int resolution)voiddelete()static longgetCPtr(Primitive obj)QgetParameters()TriMeshPtrgetTriMesh()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.TriMeshPtrgetTriMesh(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.-
Methods inherited from class org.robwork.sdurw.GeometryData
getCPtr, getType, isConvex, toString
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Primitive obj)
-
delete
public void delete()
- Overrides:
deletein classGeometryData
-
getTriMesh
public TriMeshPtr getTriMesh(boolean forceCopy)
Description copied from class:GeometryDatagets 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:
getTriMeshin classGeometryData- 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:GeometryDatagets 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:
getTriMeshin classGeometryData- Returns:
- TriMesh representation of this GeometryData
-
createMesh
public TriMeshPtr createMesh(int resolution)
-
getParameters
public Q getParameters()
-
-