![]() |
RobWorkProject
22.2.21-
|
a sphere primitive. centr in (0,0,0) and a radius. More...
#include <Sphere.hpp>
Inherits Primitive.
Public Member Functions | |
Sphere (const rw::math::Q &initQ, int levels=16) | |
constructor | |
Sphere (double radi, int levels=16) | |
constructor | |
virtual | ~Sphere () |
destructor | |
double | getRadius () const |
get sphere radius | |
TriMesh::Ptr | createMesh (int resolution) const |
make a trimesh from this primitive. Use granularity to specify minimum number of line segments a half circle is split into More... | |
virtual rw::math::Q | getParameters () const |
get the parameters that define this primitive More... | |
virtual void | setParameters (const rw::math::Q &q) |
set the parameters that define this primitive More... | |
GeometryData::GeometryType | getType () const |
the type of this primitive More... | |
![]() | |
virtual | ~Primitive () |
destructor | |
TriMesh::Ptr | getTriMesh (bool forceCopy=true) |
gets a trimesh representation of this geometry data. More... | |
virtual bool | isConvex () |
test if this geometry data is convex More... | |
bool | isInside (const rw::math::Vector3D< double > &point) |
test if a point is on the border or inside this primitive | |
![]() | |
virtual | ~GeometryData () |
Destructor. | |
Protected Member Functions | |
bool | doIsInside (const rw::math::Vector3D< double > &point) |
Check if point lies inside geometry. More... | |
![]() | |
Primitive (int levels=20) | |
Constructor. More... | |
Additional Inherited Members | |
![]() | |
typedef rw::core::Ptr< Primitive > | Ptr |
Smart pointer to this type of class. | |
![]() | |
enum | GeometryType { PointCloud, LineMesh, PlainTriMesh, IdxTriMesh, SpherePrim, BoxPrim, OBBPrim, AABBPrim, LinePrim, PointPrim, PyramidPrim, ConePrim, TrianglePrim, CylinderPrim, TubePrim, PlanePrim, RayPrim, Implicit, Quadratic, UserType } |
geometry data types | |
typedef rw::core::Ptr< GeometryData > | Ptr |
smart pointer type to this class | |
![]() | |
static std::string | toString (GeometryType type) |
format GeometryType to string More... | |
a sphere primitive. centr in (0,0,0) and a radius.
|
virtual |
make a trimesh from this primitive. Use granularity to specify minimum number of line segments a half circle is split into
resolution | [in] |
Implements Primitive.
|
inlineprotectedvirtual |
Check if point lies inside geometry.
point | [in] point to check. |
Reimplemented from Primitive.
|
inlinevirtual |
get the parameters that define this primitive
Implements Primitive.
|
inlinevirtual |
the type of this primitive
Implements GeometryData.
|
virtual |
set the parameters that define this primitive
Implements Primitive.