Package org.robwork.sdurw_geometry
Class Box
- java.lang.Object
-
- org.robwork.sdurw_geometry.GeometryData
-
- org.robwork.sdurw_geometry.Primitive
-
- org.robwork.sdurw_geometry.Box
-
public class Box extends Primitive
a box primitive, origin is in center of box
-
-
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 TriMeshPtr
createMesh(int resolution)
make a trimesh from this primitive.void
delete()
static long
getCPtr(Box obj)
Q
getParameters()
get the parameters that define this primitiveGeometryData.GeometryType
getType()
the type of this primitivevoid
setParameters(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
-
Box
public Box(long cPtr, boolean cMemoryOwn)
-
Box
public Box()
constructor - creates a 1x1x1 sided box
-
Box
public Box(double x, double y, double z)
constructor- Parameters:
x
- [in] width in x axisy
- [in] width in y axisz
- [in] width in z axis
-
Box
public Box(Q initQ)
constructor- Parameters:
initQ
- [in] vector with (x,y,z)
-
-
Method Detail
-
getCPtr
public static long getCPtr(Box obj)
-
createMesh
public TriMeshPtr createMesh(int resolution)
Description copied from class:Primitive
make a trimesh from this primitive. Use granularity to
specify minimum number of line segments a half circle is split into- Overrides:
createMesh
in classPrimitive
- Parameters:
resolution
- [in]
-
getParameters
public Q getParameters()
Description copied from class:Primitive
get the parameters that define this primitive- Overrides:
getParameters
in classPrimitive
-
setParameters
public void setParameters(Q q)
Description copied from class:Primitive
set the parameters that define this primitive- Overrides:
setParameters
in classPrimitive
-
getType
public GeometryData.GeometryType getType()
Description copied from class:GeometryData
the type of this primitive- Overrides:
getType
in classGeometryData
-
-