CAF_Component stands for CUT AND FILL COMPONENT. It represents a connected area of the surface. More...
#include <CAF_Component.h>
Public Member Functions | |
CAF_Component (std::vector< Triangle2 * > &vT_, std::map< Point2 *, std::pair< double, double > > &mVtx2BeforeAfter_, int label_) | |
void | getBorder (std::vector< Segment2 > &vBorderSegments) const |
Get border. More... | |
CAFTYP | getCAFType () const |
Get Cut&Fill-Type. More... | |
int | getLabel () const |
Get label. More... | |
void | getTriangles (std::vector< Triangle2 * > &vTrianglesOut) const |
Get Triangles. More... | |
double | getVolume () const |
Get the volume. More... | |
Protected Member Functions | |
void | init (std::map< Point2 *, std::pair< double, double > > &mVtx2BeforeAfter) |
void | setVolume (std::vector< Point2 > *pvBeforeT, std::vector< Point2 > *pvAfterT, std::vector< Point2 > *pvWallT) |
void | showGeomview (const char *name, std::vector< Point2 > *pvBeforeT, std::vector< Point2 > *pvAfterT, std::vector< Point2 > *pvWallT) const |
Protected Attributes | |
CAFTYP | caftype |
int | label |
std::vector< Triangle2 * > * | pVT |
double | volume |
CAF_Component stands for CUT AND FILL COMPONENT. It represents a connected area of the surface.
A CAF_Component object represents a connected part of the surface such that:
void GEOM_FADE25D::CAF_Component::getBorder | ( | std::vector< Segment2 > & | vBorderSegments | ) | const |
Get border.
CAFTYP GEOM_FADE25D::CAF_Component::getCAFType | ( | ) | const |
Get Cut&Fill-Type.
int GEOM_FADE25D::CAF_Component::getLabel | ( | ) | const |
Get label.
Components are consecutively numbered.
void GEOM_FADE25D::CAF_Component::getTriangles | ( | std::vector< Triangle2 * > & | vTrianglesOut | ) | const |
Get Triangles.
[out] | vTrianglesOut | is used to return the triangles |
double GEOM_FADE25D::CAF_Component::getVolume | ( | ) | const |
Get the volume.