RobWorkProject  23.9.11-
Static Public Member Functions | List of all members
CSGModelFactory Class Reference

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.
 

Detailed Description

Factory class that allows construction of CSG model primitives.

Member Function Documentation

◆ makeBox()

static CSGModel::Ptr makeBox ( float  x,
float  y,
float  z 
)
static

Constructs a CSGModel with a cube primitive.

Parameters
x,y,z– length, width and depth

◆ makeCylinder()

static CSGModel::Ptr makeCylinder ( float  r,
float  h 
)
static

Constructs a CSGModel with a cylinder primitive.

Parameters
r,h– radius, height

◆ makePlane()

static CSGModel::Ptr makePlane ( const rw::math::Vector3D<> &  point = rw::math::Vector3D<>(),
const rw::math::Vector3D<> &  normal = rw::math::Vector3D<>::z() 
)
static

Constructs plane.
Creates fake half-space, approximated by a large cube.

Parameters
point,normalpoint and normal

◆ makeSphere()

static CSGModel::Ptr makeSphere ( float  r)
static

Constructs a CSGModel with a sphere primitive.

Parameters
rradius

The documentation for this class was generated from the following file: