![]() |
RobWorkProject
23.9.11-
|
Factory class that allows construction of CSG model primitives. More...
#include <CSGModelFactory.hpp>
Static Public Member Functions | |
static CSGModel::Ptr | makeBox (float x, float y, float z) |
Constructs a CSGModel with a cube primitive. More... | |
static CSGModel::Ptr | makeCylinder (float r, float h) |
Constructs a CSGModel with a cylinder primitive. More... | |
static CSGModel::Ptr | makeSphere (float r) |
Constructs a CSGModel with a sphere primitive. More... | |
static CSGModel::Ptr | makePlane (const rw::math::Vector3D<> &point=rw::math::Vector3D<>(), const rw::math::Vector3D<> &normal=rw::math::Vector3D<>::z()) |
Constructs plane. Creates fake half-space, approximated by a large cube. More... | |
static CSGModel::Ptr | makeWedge (float angle) |
Constructs wedge. The wedge tip is located at origin and the edge runs along z axis. The wedge axis runs along x axis. | |
Factory class that allows construction of CSG model primitives.
|
static |
Constructs a CSGModel with a cube primitive.
x,y,z | – length, width and depth |
|
static |
Constructs a CSGModel with a cylinder primitive.
r,h | – radius, height |
|
static |
Constructs plane.
Creates fake half-space, approximated by a large cube.
point,normal | point and normal |
|
static |
Constructs a CSGModel with a sphere primitive.
r | radius |