Package org.robwork.sdurw_geometry
Class Pyramid
- java.lang.Object
-
- org.robwork.sdurw_geometry.GeometryData
-
- org.robwork.sdurw_geometry.Primitive
-
- org.robwork.sdurw_geometry.Pyramid
-
public class Pyramid extends Primitive
a pyrimidal geometric primitive. The pyramid has a rectangular base in the xy-plane
and its end pointed lie in the z-axis with a distance from the xy-plane.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robwork.sdurw_geometry.GeometryData
GeometryData.GeometryType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TriMeshPtrcreateMesh(int resolution)make a trimesh from this primitive.voiddelete()static longgetCPtr(Pyramid obj)QgetParameters()get the parameters that define this primitiveGeometryData.GeometryTypegetType()the type of this primitivevoidsetParameters(Q q)set the parameters that define this primitive-
Methods inherited from class org.robwork.sdurw_geometry.Primitive
getCPtr, getTriMesh, getTriMesh, isConvex, isInside
-
Methods inherited from class org.robwork.sdurw_geometry.GeometryData
getCPtr, toString
-
-
-
-
Constructor Detail
-
Pyramid
public Pyramid(long cPtr, boolean cMemoryOwn)
-
Pyramid
public Pyramid(Q initQ)
constructor
-
Pyramid
public Pyramid(double widthx, double widthy, double height)constructor- Parameters:
widthx- [in] width of pyramid in x axiswidthy- [in] width of pyramid in y-axisheight- [in] height of pyramid in z-axis
-
-
Method Detail
-
getCPtr
public static long getCPtr(Pyramid obj)
-
createMesh
public TriMeshPtr createMesh(int resolution)
Description copied from class:Primitivemake a trimesh from this primitive. Use granularity to
specify minimum number of line segments a half circle is split into- Overrides:
createMeshin classPrimitive- Parameters:
resolution- [in]
-
getParameters
public Q getParameters()
Description copied from class:Primitiveget the parameters that define this primitive- Overrides:
getParametersin classPrimitive
-
setParameters
public void setParameters(Q q)
Description copied from class:Primitiveset the parameters that define this primitive- Overrides:
setParametersin classPrimitive
-
getType
public GeometryData.GeometryType getType()
Description copied from class:GeometryDatathe type of this primitive- Overrides:
getTypein classGeometryData
-
-