OpenLexocad  27.1
Topo::SolidTool Class Reference

Tools for creating, manipulating and querying Solids. More...

#include <SolidTool.h>

Public Member Functions

 SolidTool (void)
 
virtual ~SolidTool (void)
 

Static Public Member Functions

static pSolid makeSolid (const std::vector< int > &model, const std::vector< Geom::Pnt > &vertices, std::vector< std::vector< Geom::Pnt > > &defectPolygons)
 
static pSolid makeSolid_by_Face_stiching (const std::vector< int > &model, const std::vector< Geom::Pnt > &vertices, std::vector< std::vector< Geom::Pnt > > &defectPolygons)
 
static pSolid makeSolid (pConstShape shape)
 Makes a solid from a closed shape. Returns nullptr on failure. More...
 
static Geom::Pnt getCentre (pConstSolid solid)
 Returns centre of mass (centre of gravity) of the solid. More...
 
static pSolid makeBox (double length, double width, double height)
 
static pSolid makeFourAngleRoof (double length, double width, double height, double leftSlope, double rightSlope, double leftHipSlope, double rightHipSlope)
 
static pSolid makeHipRoofWithWall (double length, double width, double height, double wallHeight, double slope, double hipSlope, bool halfRoof)
 
static pSolid makeBeveledPlate (double length, double width, double height, int bottomType, int upperType, double slope, double angleRot)
 
static pSolid makeStairsU (double length, double width, double height, double stepWidth, const std::vector< Geom::Pnt > &points, const std::vector< double > &angles)
 
static pSolid makeStairsL (double length, double width, double height, double stepWidth, const std::vector< Geom::Pnt > &points, const std::vector< double > &angles)
 
static pSolid makeStairsI (double length, double width, double height, double stepWidth, const std::vector< Geom::Pnt > &points)
 
static pSolid makeWindowArch (double majorRadius, double minorRadius, double frameWidth, double sectorWidth, double depth, bool cutOut=true)
 

Detailed Description

Tools for creating, manipulating and querying Solids.

Constructor & Destructor Documentation

◆ SolidTool()

Topo::SolidTool::SolidTool ( void  )

◆ ~SolidTool()

virtual Topo::SolidTool::~SolidTool ( void  )
virtual

Member Function Documentation

◆ getCentre()

static Geom::Pnt Topo::SolidTool::getCentre ( pConstSolid  solid)
static

Returns centre of mass (centre of gravity) of the solid.

◆ makeBeveledPlate()

static pSolid Topo::SolidTool::makeBeveledPlate ( double  length,
double  width,
double  height,
int  bottomType,
int  upperType,
double  slope,
double  angleRot 
)
static

◆ makeBox()

static pSolid Topo::SolidTool::makeBox ( double  length,
double  width,
double  height 
)
static

◆ makeFourAngleRoof()

static pSolid Topo::SolidTool::makeFourAngleRoof ( double  length,
double  width,
double  height,
double  leftSlope,
double  rightSlope,
double  leftHipSlope,
double  rightHipSlope 
)
static

◆ makeHipRoofWithWall()

static pSolid Topo::SolidTool::makeHipRoofWithWall ( double  length,
double  width,
double  height,
double  wallHeight,
double  slope,
double  hipSlope,
bool  halfRoof 
)
static

◆ makeSolid() [1/2]

static pSolid Topo::SolidTool::makeSolid ( const std::vector< int > &  model,
const std::vector< Geom::Pnt > &  vertices,
std::vector< std::vector< Geom::Pnt > > &  defectPolygons 
)
static

◆ makeSolid() [2/2]

static pSolid Topo::SolidTool::makeSolid ( pConstShape  shape)
static

Makes a solid from a closed shape. Returns nullptr on failure.

◆ makeSolid_by_Face_stiching()

static pSolid Topo::SolidTool::makeSolid_by_Face_stiching ( const std::vector< int > &  model,
const std::vector< Geom::Pnt > &  vertices,
std::vector< std::vector< Geom::Pnt > > &  defectPolygons 
)
static

◆ makeStairsI()

static pSolid Topo::SolidTool::makeStairsI ( double  length,
double  width,
double  height,
double  stepWidth,
const std::vector< Geom::Pnt > &  points 
)
static

◆ makeStairsL()

static pSolid Topo::SolidTool::makeStairsL ( double  length,
double  width,
double  height,
double  stepWidth,
const std::vector< Geom::Pnt > &  points,
const std::vector< double > &  angles 
)
static

◆ makeStairsU()

static pSolid Topo::SolidTool::makeStairsU ( double  length,
double  width,
double  height,
double  stepWidth,
const std::vector< Geom::Pnt > &  points,
const std::vector< double > &  angles 
)
static

◆ makeWindowArch()

static pSolid Topo::SolidTool::makeWindowArch ( double  majorRadius,
double  minorRadius,
double  frameWidth,
double  sectorWidth,
double  depth,
bool  cutOut = true 
)
static

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