Package org.robwork.sdurw
Class Cylinder
- java.lang.Object
-
- org.robwork.sdurw.GeometryData
-
- org.robwork.sdurw.Primitive
-
- org.robwork.sdurw.Cylinder
-
public class Cylinder extends Primitive
Cylinder primitive.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robwork.sdurw.GeometryData
GeometryData.GeometryType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TriMeshPtrcreateMesh(int resolution)Create a mesh representation of the cylinder.
voiddelete()static longgetCPtr(Cylinder obj)doublegetHeight()QgetParameters()doublegetRadius()GeometryData.GeometryTypegetType()the type of this primitive
-
Methods inherited from class org.robwork.sdurw.Primitive
getCPtr, getTriMesh, getTriMesh
-
Methods inherited from class org.robwork.sdurw.GeometryData
getCPtr, isConvex, toString
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Cylinder obj)
-
getRadius
public double getRadius()
-
getHeight
public double getHeight()
-
createMesh
public TriMeshPtr createMesh(int resolution)
Create a mesh representation of the cylinder.
- Overrides:
createMeshin classPrimitive- Parameters:
resolution- the resolution.- Returns:
- the TriMesh.
-
getParameters
public Q getParameters()
- Overrides:
getParametersin classPrimitive
-
getType
public GeometryData.GeometryType getType()
Description copied from class:GeometryDatathe type of this primitive
- Overrides:
getTypein classGeometryData- Returns:
- the type of primitive.
-
-