CAF_Component stands for CUT AND FILL COMPONENT. It represents a connected area of the surface.
More...
#include <CAF_Component.h>
|
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 |
|
A CAF_Component object represents a connected part of the surface such that:
- the first surface is below the second one (CAFTYP=CT_FILL) or
- the first surface is above the second one (CAFTYP=CT_CUT) or
- the first surface corresponds to the second one (CAFTYP=CT_NULL)
◆ getBorder()
void GEOM_FADE25D::CAF_Component::getBorder |
( |
std::vector< Segment2 > & |
vBorderSegments | ) |
const |
- Returns
- border segments of the present component in no particular order
◆ getCAFType()
CAFTYP GEOM_FADE25D::CAF_Component::getCAFType |
( |
| ) |
const |
- Returns
- CT_CUT, CT_FILL or CT_NULL
- CT_CUT means that earth must be digged off to turn the first surface into the second one,
- CT_FILL means that earth must be added.
- CT_NULL is returned when the first surface corresponds to the second one.
◆ getLabel()
int GEOM_FADE25D::CAF_Component::getLabel |
( |
| ) |
const |
- Returns
- the component label
Components are consecutively numbered.
◆ getTriangles()
void GEOM_FADE25D::CAF_Component::getTriangles |
( |
std::vector< Triangle2 * > & |
vTrianglesOut | ) |
const |
- Returns
- the triangles of the present component. The z-coordinates of their corners correspond to the height differences between the two input surfaces.
- Parameters
-
[out] | vTrianglesOut | is used to return the triangles |
◆ getVolume()
double GEOM_FADE25D::CAF_Component::getVolume |
( |
| ) |
const |
- Returns
- the volume of the present component.
- Note
- The volume is an absolute value. Use getCAFType() to determine if it is a CUT, FILL or ZERO volume.
- Warning
- The computations are unitless but you must make sure that the x, y, and z-coordinate are given in the same unit.
The documentation for this class was generated from the following file: