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 TriMeshPtr
createMesh(int resolution)
void
delete()
static long
getCPtr(Primitive obj)
Q
getParameters()
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.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.-
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:
delete
in classGeometryData
-
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 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: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 classGeometryData
- Returns:
- TriMesh representation of this GeometryData
-
createMesh
public TriMeshPtr createMesh(int resolution)
-
getParameters
public Q getParameters()
-
-