CFx SDK Documentation
2023 SP0
|
#include <FMProfile2D.h>
Public Types | |
typedef Contour2D | value_type |
DOM. More... | |
typedef const Contour2D & | const_reference |
DOM. More... | |
typedef Contour2D & | reference |
DOM. More... | |
typedef const Contour2D * | const_pointer |
DOM. More... | |
typedef Contour2D * | pointer |
DOM. More... | |
typedef OdUInt32 | size_type |
DOM. More... | |
typedef const Contour2D * | const_iterator |
DOM. More... | |
typedef Contour2D * | iterator |
DOM. More... | |
Static Public Member Functions | |
static bool | PerformOperation (BooleanOperation eOperation, const Profile2D &rArg1, const Profile2D &rArg2, Profile2D &rResult, const OdGeTol &tol=FMGeGbl::gTol) |
Static Public Attributes | |
static FMGEOMETRY_API_STATIC const Profile2D | kNull |
Describes 2D Profile.
Definition at line 38 of file FMProfile2D.h.
typedef const Contour2D* FacetModeler::Profile2D::const_iterator |
DOM.
Definition at line 79 of file FMProfile2D.h.
typedef const Contour2D* FacetModeler::Profile2D::const_pointer |
DOM.
Definition at line 73 of file FMProfile2D.h.
typedef const Contour2D& FacetModeler::Profile2D::const_reference |
DOM.
Definition at line 69 of file FMProfile2D.h.
DOM.
Definition at line 81 of file FMProfile2D.h.
DOM.
Definition at line 75 of file FMProfile2D.h.
DOM.
Definition at line 71 of file FMProfile2D.h.
DOM.
Definition at line 77 of file FMProfile2D.h.
DOM.
Definition at line 67 of file FMProfile2D.h.
FacetModeler::Profile2D::Profile2D | ( | ) |
Constructor.
|
explicit |
Constructor.
FacetModeler::Profile2D::~Profile2D | ( | ) |
Destructor.
FacetModeler::Profile2D::Profile2D | ( | const Profile2D & | rSrc | ) |
Copy constructor.
Result FacetModeler::Profile2D::addExtents | ( | OdGeExtents2d & | extExtents | ) | const |
Appends the extents of the profile to the specified extents structure.
reference FacetModeler::Profile2D::back | ( | ) |
DOM.
const_reference FacetModeler::Profile2D::back | ( | ) | const |
DOM.
iterator FacetModeler::Profile2D::begin | ( | ) |
DOM.
const_iterator FacetModeler::Profile2D::begin | ( | ) | const |
DOM.
size_type FacetModeler::Profile2D::capacity | ( | ) | const |
DOM.
void FacetModeler::Profile2D::clear | ( | ) |
Clears the profile.
bool FacetModeler::Profile2D::contains | ( | const OdGePoint2d & | ptTest, |
bool * | pOnBorder = 0 , |
||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Tries to create a profile from standard ACAD object's geometry.
idEntity | [in] Object ID of ACAD entity to convert geometry from. |
mResult | [out] Result. |
Returns true if the point lies inside the profile or on it's border.
void FacetModeler::Profile2D::deleteCoincident | ( | const OdGeTol & | gTol = FMGeGbl::gTol | ) |
Removes redundant segments with zero length for all contours.
bool FacetModeler::Profile2D::empty | ( | ) | const |
DOM.
iterator FacetModeler::Profile2D::end | ( | ) |
DOM.
const_iterator FacetModeler::Profile2D::end | ( | ) | const |
DOM.
Result FacetModeler::Profile2D::explode | ( | const DeviationParams & | devDeviation = FMGeGbl::gDefDev , |
OdIntPtr | uArcMetadata = 0 |
||
) |
Explodes all contours.
Result FacetModeler::Profile2D::explodeTo | ( | Profile2D & | rDestProfile, |
const DeviationParams & | devDeviation = FMGeGbl::gDefDev , |
||
OdIntPtr | uArcMetadata = 0 |
||
) | const |
Explodes all contours.
void FacetModeler::Profile2D::fit | ( | const OdGeExtents2d & | extBoundingBox, |
bool | bFitX, | ||
bool | bFitY, | ||
const DeviationParams & | devDeviation = FMGeGbl::gDefDev |
||
) |
Adjusts profile to bounding box extents.
void FacetModeler::Profile2D::fit | ( | const OdGeExtents2d & | extBoundingBox, |
const DeviationParams & | devDeviation = FMGeGbl::gDefDev |
||
) |
Adjusts profile to bounding box extents.
reference FacetModeler::Profile2D::front | ( | ) |
DOM.
const_reference FacetModeler::Profile2D::front | ( | ) | const |
DOM.
void FacetModeler::Profile2D::getAdjustedProfile | ( | double | dWidth, |
double | dDepth, | ||
bool | bAdjustWidth, | ||
bool | bAdjustDepth, | ||
bool | bMirrorInX, | ||
bool | bMirrorInY, | ||
double | dRotation, | ||
Profile2D & | rResult | ||
) | const |
Returns adjusted profile.
dWidth | [in] Width of desired extents. |
dDepth | [in] Depth of desired extents. |
bAdjustWidth | [in] Adjusts the width to extents. |
bAdjustDepth | [in] Adjusts the depth to extents. |
bMirrorInX | [in] Mirror in X. |
bMirrorInY | [in] Mirror in Y. |
dRotation | [in] Rotation around Z axis. |
rResult | [out] Resulting profile. |
Returns profiles. Each of the returned profiles bounds a connected domain, and contains one (the first one) big CCW contour and possibly few smaller CW "holes".
Returns all hole contours reversed.
Result FacetModeler::Profile2D::getOffsetProfile | ( | double | dOffset, |
Profile2D & | rResult, | ||
FilletType | eFilletType = eftExtend , |
||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Return the profile that is shifted in normal direction from this closed(!) contour. E.g. counter-clockwise circle is extended, if dOffset is negative. It is contracted, if dOffset is positive and small enough, and it becomes empty, if dOffset > radius
dOffset | [in] Signed offset along normal direction. Positive offset is to inside for CCW contours. |
rResult | [out] Resulting profile. |
eFilletType | [in] Gap filling strategy for the segments sliding apart |
tTol | [in] Tolerance. |
Result FacetModeler::Profile2D::getSingleContour | ( | Contour2D & | rDest, |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Returns single contour describing the profile with bridges between initial contours.
This profile should be "regular" (no self-intersections and valid nesting of CW/CCW contours )
Returns all non-hole contours.
bool FacetModeler::Profile2D::hasNonEmptyContours | ( | ) | const |
Returns true if this profile contains at least one non-empty contour
void FacetModeler::Profile2D::insert | ( | iterator | itWhere, |
const_iterator | itFirst, | ||
const_iterator | itLast | ||
) |
DOM.
bool FacetModeler::Profile2D::isValidRegion | ( | const OdGeTol & | gTol = FMGeGbl::gTol | ) | const |
Returns whether this profile contains only closed contours and coincides with a directional boundary of some open 2D-region.
size_type FacetModeler::Profile2D::max_size | ( | ) | const |
DOM.
void FacetModeler::Profile2D::mergeSegments | ( | int | iMergeFlags = 0 , |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) |
Merges adjacent segments for all contours.
iMergeFlags | [in] combination of AECGe::FilletType flags (emfMergeArcs,emfIgnoreMetadata,emfMergeOrigin) |
gTol | [in] Tolerance. |
const_reference FacetModeler::Profile2D::operator[] | ( | size_type | iPos | ) | const |
DOM.
|
static |
Performs boolean operation on 2D profiles.
double FacetModeler::Profile2D::perimeter | ( | ) | const |
Returns the perimeter of the profile.
void FacetModeler::Profile2D::pop_back | ( | ) |
DOM.
Contour2D& FacetModeler::Profile2D::push_back | ( | ) |
DOM.
Contour2D& FacetModeler::Profile2D::push_back | ( | ContourImplClass | eCC | ) |
DOM.
Result FacetModeler::Profile2D::regularizeTo | ( | Profile2D & | rDest, |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Removes self-intersecting parts oriented clockwise and leaves counter-clockwise parts intact.
void FacetModeler::Profile2D::reverse | ( | ) |
Reverses all contours.
Result FacetModeler::Profile2D::setAllMetadata | ( | OdIntPtr | uNewData, |
OdIntPtr | uBitsToModify = INT_MAX |
||
) |
Updates metadata for all segments in all contours.
double FacetModeler::Profile2D::signedArea | ( | ) | const |
Returns signed area
size_type FacetModeler::Profile2D::size | ( | ) | const |
DOM.
void FacetModeler::Profile2D::split | ( | const OdGeLine2d & | lCutter, |
Profile2D & | rRght, | ||
Profile2D & | rLeft | ||
) | const |
Splits profile with a line.
Result FacetModeler::Profile2D::transformBy | ( | const OdGeMatrix2d & | mMatrix, |
const DeviationParams & | devDeviation = FMGeGbl::gDefDev |
||
) |
Transforms all contours.
|
static |
An empty static profile
Definition at line 373 of file FMProfile2D.h.