CFx SDK Documentation
2020SP3
|
#include <FMContour2D.h>
Public Member Functions | |
Contour2D () | |
Contour2D (ContourImplClass eImplClass) | |
Contour2D (const IBulgeSeg2D &rSrcSeg, ContourImplClass eImplClass=ecicSimple) | |
Contour2D (const Contour2D &rSrcCont, ContourImplClass eImplClass=ecicSimple) | |
Contour2D (const IContour2D &rSrcCont, ContourImplClass eImplClass=ecicSimple) | |
DOM. More... | |
Contour2D (const OdGeExtents2d &ext) | |
~Contour2D () | |
Contour2D & | operator= (const Contour2D &rSrcCont) |
Contour2D & | operator= (const IContour2D &rSrcCont) |
DOM. More... | |
Contour2D & | cloneFrom (const IContour2D &rSrcCont) |
Contour2D & | reset (ContourImplClass eImplClass=ecicUnknown) |
ContourImplClass | implClass () const |
void | swap (Contour2D &rAnother) |
bool | isClosed () const |
bool | isEndsEqual (const OdGeTol &gTol=FMGeGbl::gTol) const |
void | setClosed (bool bClosed=true) |
bool | isEmpty () const |
OdUInt32 | numVerts () const |
OdUInt32 | numSegments () const |
bool | hasArcs () const |
SegmentType | segmentType (OdUInt32 iIndex) const |
Result | getSegmentAt (OdUInt32 iIndex, Segment2D &rSegment) const |
Result | getSegmentAt (OdUInt32 iIndex, OdGePoint2d &ptStart, OdGePoint2d &ptEnd, double &dBulge) const |
Result | getLineSegAt (OdUInt32 iIndex, OdGeLineSeg2d &geLine) const |
Result | getArcSegAt (OdUInt32 iIndex, OdGeCircArc2d &geArc) const |
Result | getPointAt (OdUInt32 iIndex, OdGePoint2d &ptPoint) const |
Result | getBulgeAt (OdUInt32 iIndex, double &dBulge) const |
Result | getVertexAt (OdUInt32 iIndex, OdGePoint2d *pPoint, double *pBulge=0, OdIntPtr *pMetadata=0, OdUInt32 *puRawFlags=0) const |
Result | getInternalAngleAt (OdUInt32 iIndex, double &dAngle) const |
Result | setPointAt (OdUInt32 iIndex, const OdGePoint2d &ptPoint) |
Result | setBulgeAt (OdUInt32 iIndex, double dBulge) |
Result | setVertexAt (OdUInt32 iIndex, const OdGePoint2d &ptPoint, double dBulge) |
void | reserveVertices (OdUInt32 iReservedSize) |
OdIntPtr | metadataAt (OdUInt32 iIndex) const |
Result | setMetadataAt (OdUInt32 iIndex, OdIntPtr iNewData) |
Result | setAllMetadata (OdIntPtr iNewData, OdIntPtr iBitsToModify=(OdIntPtr) -1) |
bool | isHiddenAt (OdUInt32 iIndex) const |
Result | setHiddenAt (OdUInt32 iIndex, bool bHidden=true) |
FaceOrientation | orientationAt (OdUInt32 iIndex) const |
Result | setOrientationAt (OdUInt32 iIndex, FaceOrientation eOrientation) |
bool | threatAsSmoothCurveAt (OdUInt32 iIndex) const |
void | setThreatAsSmoothCurveAt (OdUInt32 iIndex, bool bSmooth) |
bool | isExplodedArcAt (OdUInt32 iIndex) const |
Result | setExplodedArcAt (OdUInt32 iIndex, bool bExplodedArc=true) |
OdUInt32 | rawFlagsAt (OdUInt32 iIndex) const |
Result | setRawFlagsAt (OdUInt32 iIndex, OdUInt32 iRawFlags) |
Result | addVertexAt (OdUInt32 iIndex, const OdGePoint2d &ptStart, double dBulge=0.0, OdIntPtr uMetadata=0, OdUInt32 uRawFlags=0) |
Result | appendVertex (const OdGePoint2d &ptStart, double dBulge=0.0, OdIntPtr uMetadata=0, OdUInt32 uRawFlags=0) |
Result | appendVertex (const OdGePoint2d &ptStart, const OdGePoint2d &ptMid, OdIntPtr uMetadata=0, OdUInt32 uRawFlags=0) |
Result | appendVertices (const OdGePoint2dArray &vecSource) |
Result | appendSegment (const Segment2D &rSeg, bool bShiftToHit=false) |
Result | appendContour (const Contour2D &rCont, bool bCloseGap=false, double dMaxGap=1e99) |
Result | removeVertexAt (OdUInt32 iIndex) |
double | startParam () const |
double | endParam () const |
Result | getStartPoint (OdGePoint2d &ptPoint) const |
Result | getEndPoint (OdGePoint2d &ptPoint) const |
double | length () const |
Result | getTangent (double dParam, OdGeVector2d &vTangent) const |
Result | getTangentAtDist (double dDist, OdGeVector2d &vTangent) const |
Result | getPoint (double dParam, OdGePoint2d &ptPoint) const |
Result | getPointAtDist (double dDist, OdGePoint2d &ptPoint) const |
Result | getDistAtParam (double dParam, double &dDist) const |
Result | getParamAtDist (double dDist, double &dParam) const |
Result | getNormalizedParam (double &dParam) const |
Result | getNormalizedDist (double &dDist) const |
bool | areEqualParams (double dParam1, double dParam2, double dParamTol=1e-10) const |
bool | areEqualDists (double dDist1, double dDist2, double dTol=1e-6) const |
Result | addExtents (OdGeExtents2d &extExtents) const |
double | area () const |
double | signedArea () const |
bool | isConvex () const |
bool | isCCW () const |
void | makeCCW (bool bCCW=true) |
bool | isOn (const OdGePoint2d &ptTest, double *pParam=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
double | nearestParam (const OdGePoint2d &ptTest, OdGePoint2d *ptNearest=0) const |
bool | contains (const OdGePoint2d &ptPoint, bool *pOnBorder=0, const OdGeTol &gTol=FMGeGbl::gTol) const |
bool | isSelfIntersecting (const OdGeTol &gTol=FMGeGbl::gTol, bool bExcludeTouch=false) const |
bool | isValidRegion (const OdGeTol &gTol=FMGeGbl::gTol) const |
bool | isInsideContour (const Contour2D &c2dOuter, bool fAllowBordersTouch=false, const OdGeTol &gTol=FMGeGbl::gTol) const |
OdUInt32 | intersect (const Segment2D &rSegB, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const |
OdUInt32 | intersect (const Contour2D &rContB, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const |
OdUInt32 | intersectLine (const OdGeLine2d &rLine, std::vector< Intersection > &vecPoints, const OdGeTol &gTol=FMGeGbl::gTol) const |
Result | transformBy (const OdGeMatrix2d &mMatrix, const DeviationParams &devDeviation=FMGeGbl::gDefDev) |
void | reverse () |
void | deleteCoincident (const OdGeTol &gTol=FMGeGbl::gTol) |
void | mergeSegments (int iMergeFlags=0, const OdGeTol &gTol=FMGeGbl::gTol) |
Result | explode (const DeviationParams &devDeviation=FMGeGbl::gDefDev, OdIntPtr uArcMetadata=0) |
Result | explodeTo (Contour2D &rDestCont, const DeviationParams &devDeviation=FMGeGbl::gDefDev, OdIntPtr uArcMetadata=0) const |
OdUInt32 | createVertexAt (double dParam, const OdGeTol &gTol=FMGeGbl::gTol) |
OdUInt32 | createVertexAtDist (double dDist, const OdGeTol &gTol=FMGeGbl::gTol) |
Result | createVerticesAt (const std::vector< double > &vecParams, const OdGeTol &gTol=FMGeGbl::gTol) |
Result | getSubContour (double dStartParam, double dEndParam, Contour2D &rSubContour, const OdGeTol &gTol=FMGeGbl::gTol) const |
Result | getOffsetProfile (double dOffset, Profile2D &rResult, FilletType eFilletType=eftExtend, const OdGeTol &gTol=FMGeGbl::gTol) const |
Result | getProfileByOffsets (const std::vector< double > &adOffset, Profile2D &rResult, const OdGeTol &gTol=FMGeGbl::gTol) const |
bool | traverse (Contour2DTraversingReactor &reactor) const |
void | getGeomExtens (OdGeExtents2d &extens) |
operator const IContour2D & () const | |
DOM. More... | |
operator IContour2D & () | |
DOM. More... | |
const IContour2D & | impl () const |
DOM. More... | |
IContour2D & | impl () |
DOM. More... | |
Static Public Attributes | |
static FMGEOMETRY_API_STATIC const Contour2D | kNull |
Representation of 2D Contour.
There are 3 ways to pick some (non-vertex) point on the contour: a) use an integer index to get a segment and then use parameter on the segment (GeLine or GeArc). b) use a distance along the curve from the starting point. c) use a "parameter" value.
The last way is the fastest (and preferred in most cases) because of the "parameter" structure: dParam = startParam() + iIndex * (dOffsetOnSegment/dSegmentLength)
So the point given by parameter value can be found at constant time.
Definition at line 74 of file FMContour2D.h.
FacetModeler::Contour2D::Contour2D | ( | ) |
Creates contour of eSimple implementation type.
|
explicit |
Creates contour of specified implementation type.
eImplClass | [in] Implementation type. |
|
explicit |
Creates contour and initializes it with specified segment.
FacetModeler::Contour2D::Contour2D | ( | const Contour2D & | rSrcCont, |
ContourImplClass | eImplClass = ecicSimple |
||
) |
Creates contour and initializes it with specified contour.
|
explicit |
DOM.
FacetModeler::Contour2D::Contour2D | ( | const OdGeExtents2d & | ext | ) |
Creates rectangular contour and initializes it with extens points
FacetModeler::Contour2D::~Contour2D | ( | ) |
Destructor.
Result FacetModeler::Contour2D::addExtents | ( | OdGeExtents2d & | extExtents | ) | const |
Appends the extents of the contour to the specified extents structure.
Result FacetModeler::Contour2D::addVertexAt | ( | OdUInt32 | iIndex, |
const OdGePoint2d & | ptStart, | ||
double | dBulge = 0.0 , |
||
OdIntPtr | uMetadata = 0 , |
||
OdUInt32 | uRawFlags = 0 |
||
) |
Adds a vertex at the specified index.
If it is equal to numVerts(), a new vertex will be appended to the array, otherwise it`ll be inserted before the old iIndex vertex.
Result FacetModeler::Contour2D::appendContour | ( | const Contour2D & | rCont, |
bool | bCloseGap = false , |
||
double | dMaxGap = 1e99 |
||
) |
Appends contour to the end of this contour.
If bCloseGap is true, a segment, connecting the points is inserted and the return code is erWarnPointNotOnThis.
Appends segment to the end of this contour.
If the contour is closed, the last (closing) segment is wiped out.
Result FacetModeler::Contour2D::appendVertex | ( | const OdGePoint2d & | ptStart, |
const OdGePoint2d & | ptMid, | ||
OdIntPtr | uMetadata = 0 , |
||
OdUInt32 | uRawFlags = 0 |
||
) |
Appends a new vertex to the end of contour.
Result FacetModeler::Contour2D::appendVertex | ( | const OdGePoint2d & | ptStart, |
double | dBulge = 0.0 , |
||
OdIntPtr | uMetadata = 0 , |
||
OdUInt32 | uRawFlags = 0 |
||
) |
Appends a new vertex to the end of contour.
Result FacetModeler::Contour2D::appendVertices | ( | const OdGePoint2dArray & | vecSource | ) |
Appends vertex data to this contour.
double FacetModeler::Contour2D::area | ( | ) | const |
Returns non-negative area of the contour.
bool FacetModeler::Contour2D::areEqualDists | ( | double | dDist1, |
double | dDist2, | ||
double | dTol = 1e-6 |
||
) | const |
Returns true if the distances are equal (after normalization).
bool FacetModeler::Contour2D::areEqualParams | ( | double | dParam1, |
double | dParam2, | ||
double | dParamTol = 1e-10 |
||
) | const |
Returns true if the parameters are valid and equal (after normalization).
Contour2D& FacetModeler::Contour2D::cloneFrom | ( | const IContour2D & | rSrcCont | ) |
Copies the contents of the specified contour.
bool FacetModeler::Contour2D::contains | ( | const OdGePoint2d & | ptPoint, |
bool * | pOnBorder = 0 , |
||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Returns whether the point is located inside contour.
ptPoint | [in] Point to test. |
pOnBorder | [out] Filled with true if point is located on contour. |
gTol | [in] Tolerance. |
OdUInt32 FacetModeler::Contour2D::createVertexAt | ( | double | dParam, |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) |
Adds a vertex corresponding to the specified parameter into the contour.
dParam | [in] Parameter on contour. |
gTol | [in] Tolerance. |
Insertion or removal of a vertex at dParam invalidates all parameters greater than floor(dParam).
OdUInt32 FacetModeler::Contour2D::createVertexAtDist | ( | double | dDist, |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) |
Adds a vertex corresponding to the specified distance into the contour.
dDist | [in] Distance on contour. |
gTol | [in] Tolerance. |
Result FacetModeler::Contour2D::createVerticesAt | ( | const std::vector< double > & | vecParams, |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) |
Adds vertices at the specified parameters into the contour
vecParams | [in] Array of parameters. |
gTol | [in] Tolerance. |
void FacetModeler::Contour2D::deleteCoincident | ( | const OdGeTol & | gTol = FMGeGbl::gTol | ) |
Removes redundant segments with zero length.
double FacetModeler::Contour2D::endParam | ( | ) | const |
Returns end contour parameter.
Result FacetModeler::Contour2D::explode | ( | const DeviationParams & | devDeviation = FMGeGbl::gDefDev , |
OdIntPtr | uArcMetadata = 0 |
||
) |
Explodes all arc segments to lines. Sets uArcMetadata flag on exploded segments.
Result FacetModeler::Contour2D::explodeTo | ( | Contour2D & | rDestCont, |
const DeviationParams & | devDeviation = FMGeGbl::gDefDev , |
||
OdIntPtr | uArcMetadata = 0 |
||
) | const |
Explodes all arc segments to lines. Sets uArcMetadata flag on exploded segments.
Result FacetModeler::Contour2D::getArcSegAt | ( | OdUInt32 | iIndex, |
OdGeCircArc2d & | geArc | ||
) | const |
Returns linear segment by index.
Returns bulge value for segment with specified index.
Result FacetModeler::Contour2D::getDistAtParam | ( | double | dParam, |
double & | dDist | ||
) | const |
Returns distance at parameter.
Result FacetModeler::Contour2D::getEndPoint | ( | OdGePoint2d & | ptPoint | ) | const |
Returns end point of the contour.
void FacetModeler::Contour2D::getGeomExtens | ( | OdGeExtents2d & | extens | ) |
Returns geometry extens
Returns internal angle of vertex by specified index.
Result FacetModeler::Contour2D::getLineSegAt | ( | OdUInt32 | iIndex, |
OdGeLineSeg2d & | geLine | ||
) | const |
Returns linear segment by index.
Result FacetModeler::Contour2D::getNormalizedDist | ( | double & | dDist | ) | const |
Converts distance to [0, length] range.
Result FacetModeler::Contour2D::getNormalizedParam | ( | double & | dParam | ) | const |
Converts parameter to [start param, end param] range.
Result FacetModeler::Contour2D::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::Contour2D::getParamAtDist | ( | double | dDist, |
double & | dParam | ||
) | const |
Returns parameter at distance.
Result FacetModeler::Contour2D::getPoint | ( | double | dParam, |
OdGePoint2d & | ptPoint | ||
) | const |
Returns point at parameter.
Result FacetModeler::Contour2D::getPointAt | ( | OdUInt32 | iIndex, |
OdGePoint2d & | ptPoint | ||
) | const |
Returns point by index.
Result FacetModeler::Contour2D::getPointAtDist | ( | double | dDist, |
OdGePoint2d & | ptPoint | ||
) | const |
Returns point at distance.
Result FacetModeler::Contour2D::getProfileByOffsets | ( | const std::vector< double > & | adOffset, |
Profile2D & | rResult, | ||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Result FacetModeler::Contour2D::getSegmentAt | ( | OdUInt32 | iIndex, |
OdGePoint2d & | ptStart, | ||
OdGePoint2d & | ptEnd, | ||
double & | dBulge | ||
) | const |
Returns segment paramters by index.
Returns segment by index.
Result FacetModeler::Contour2D::getStartPoint | ( | OdGePoint2d & | ptPoint | ) | const |
Returns start point of the contour.
Result FacetModeler::Contour2D::getSubContour | ( | double | dStartParam, |
double | dEndParam, | ||
Contour2D & | rSubContour, | ||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Returns sub-contour given by 2 parameters.
Result FacetModeler::Contour2D::getTangent | ( | double | dParam, |
OdGeVector2d & | vTangent | ||
) | const |
Returns tangent at parameter.
Result FacetModeler::Contour2D::getTangentAtDist | ( | double | dDist, |
OdGeVector2d & | vTangent | ||
) | const |
Returns tangent at distance.
Result FacetModeler::Contour2D::getVertexAt | ( | OdUInt32 | iIndex, |
OdGePoint2d * | pPoint, | ||
double * | pBulge = 0 , |
||
OdIntPtr * | pMetadata = 0 , |
||
OdUInt32 * | puRawFlags = 0 |
||
) | const |
Returns vertex data by specified index.
bool FacetModeler::Contour2D::hasArcs | ( | ) | const |
Returns true, if the contour contains at least one arc
|
inline |
DOM.
Definition at line 822 of file FMContour2D.h.
|
inline |
DOM.
Definition at line 818 of file FMContour2D.h.
ContourImplClass FacetModeler::Contour2D::implClass | ( | ) | const |
Returns the implementation type.
OdUInt32 FacetModeler::Contour2D::intersect | ( | const Contour2D & | rContB, |
std::vector< Intersection > & | vecPoints, | ||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Calculates all intersections with specified contour and appends the result to vecPoints.
rContB | [in] Contour this contour is intersected with. |
vecPoints | [out] Intersection container the result is appended to. |
gTol | [in] Tolerance. |
OdUInt32 FacetModeler::Contour2D::intersect | ( | const Segment2D & | rSegB, |
std::vector< Intersection > & | vecPoints, | ||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Calculates all intersections with specified segment and appends the result to vecPoints.
rSegB | [in] Segment this contour is intersected with. |
vecPoints | [out] Intersection container the result is appended to. |
gTol | [in] Tolerance. |
OdUInt32 FacetModeler::Contour2D::intersectLine | ( | const OdGeLine2d & | rLine, |
std::vector< Intersection > & | vecPoints, | ||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Calculates all intersections with specified line and appends the result to vecPoints.
rLine | [in] Line this contour is intersected with. |
vecPoints | [out] Intersection container the result is appended to. |
gTol | [in] Tolerance. |
bool FacetModeler::Contour2D::isCCW | ( | ) | const |
Returns true if the contour has counter-clockwise orientation.
bool FacetModeler::Contour2D::isClosed | ( | ) | const |
Returns true if the contour is closed, false otherwise.
bool FacetModeler::Contour2D::isConvex | ( | ) | const |
Returns true if contour is convex and false otherwise
bool FacetModeler::Contour2D::isEmpty | ( | ) | const |
Returns true if contour has no vertices.
bool FacetModeler::Contour2D::isEndsEqual | ( | const OdGeTol & | gTol = FMGeGbl::gTol | ) | const |
bool FacetModeler::Contour2D::isExplodedArcAt | ( | OdUInt32 | iIndex | ) | const |
Returns true if the segment with specified index is a part of an exploded arc.
bool FacetModeler::Contour2D::isHiddenAt | ( | OdUInt32 | iIndex | ) | const |
Returns true if the segment with specified index in hidden.
bool FacetModeler::Contour2D::isInsideContour | ( | const Contour2D & | c2dOuter, |
bool | fAllowBordersTouch = false , |
||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
bool FacetModeler::Contour2D::isOn | ( | const OdGePoint2d & | ptTest, |
double * | pParam = 0 , |
||
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) | const |
Returns whether the point is located on contour.
ptTest | [in] Point to test. |
pParam | [out] Resulting parameter. |
gTol | [in] Tolerance. |
bool FacetModeler::Contour2D::isSelfIntersecting | ( | const OdGeTol & | gTol = FMGeGbl::gTol , |
bool | bExcludeTouch = false |
||
) | const |
Returns whether the contour intersects itself.
Returns true if and only if there exists a pair of intersecting segments and the shortest distance along the contour between the intersections is greater than tolerance. E.g. The method returns true for 8 - shaped contour regardless of central intersection type (touch or crossing). The method returns false for O - shaped closed contour, but returns true for the open one.
bool FacetModeler::Contour2D::isValidRegion | ( | const OdGeTol & | gTol = FMGeGbl::gTol | ) | const |
Returns whether this contour is closed and coincides with a directional boundary of some open 2D-region.
double FacetModeler::Contour2D::length | ( | ) | const |
Returns the length of the contour.
Makes contour counter-clockwise or clockwise.
void FacetModeler::Contour2D::mergeSegments | ( | int | iMergeFlags = 0 , |
const OdGeTol & | gTol = FMGeGbl::gTol |
||
) |
Merges adjacent segments.
iMergeFlags | [in] combination of AECGe::FilletType flags (emfMergeArcs,emfIgnoreMetadata,emfMergeOrigin) |
gTol | [in] Tolerance. |
Returns metadata for the specified segment.
double FacetModeler::Contour2D::nearestParam | ( | const OdGePoint2d & | ptTest, |
OdGePoint2d * | ptNearest = 0 |
||
) | const |
Returns nearest parameter on contour.
ptTest | [in] Point to test. |
ptNearest | [out] Nearest point on contour. |
OdUInt32 FacetModeler::Contour2D::numSegments | ( | ) | const |
Returns the number of segments.
OdUInt32 FacetModeler::Contour2D::numVerts | ( | ) | const |
Returns the number of vertices.
|
inline |
DOM.
Definition at line 810 of file FMContour2D.h.
|
inline |
DOM.
Definition at line 814 of file FMContour2D.h.
Creates a copy of specified contour.
Contour2D& FacetModeler::Contour2D::operator= | ( | const IContour2D & | rSrcCont | ) |
DOM.
FaceOrientation FacetModeler::Contour2D::orientationAt | ( | OdUInt32 | iIndex | ) | const |
Returns segment orientation.
Returns all built-in flags (orientation, visibility etc.) for the specified segment.
Removes a vertex and corresponding segment.
Sets capacity of the contour data to the specified vertex number.
Contour2D& FacetModeler::Contour2D::reset | ( | ContourImplClass | eImplClass = ecicUnknown | ) |
Clears the contents of the contour.
eImplClass | [in] Implementation type. |
void FacetModeler::Contour2D::reverse | ( | ) |
Reverses the contour.
SegmentType FacetModeler::Contour2D::segmentType | ( | OdUInt32 | iIndex | ) | const |
Returns the type of the segment that begins at the specified vertex.
Result FacetModeler::Contour2D::setAllMetadata | ( | OdIntPtr | iNewData, |
OdIntPtr | iBitsToModify = (OdIntPtr) -1 |
||
) |
Updates metadata for all segments.
Sets or clears ecfExplodedArc flag at specified segment.
Sets or clears ecfHidden flag at specified segment.
Sets metadata for the specified segment.
Result FacetModeler::Contour2D::setOrientationAt | ( | OdUInt32 | iIndex, |
FaceOrientation | eOrientation | ||
) |
Sets segment orientation.
Result FacetModeler::Contour2D::setPointAt | ( | OdUInt32 | iIndex, |
const OdGePoint2d & | ptPoint | ||
) |
Sets point by index.
Updates all built-in flags (orientation, visibility etc.) for the specified segment.
Sets "smooth" flag value. It used to create smooth surfases when generating extrusion or revolution body.
Result FacetModeler::Contour2D::setVertexAt | ( | OdUInt32 | iIndex, |
const OdGePoint2d & | ptPoint, | ||
double | dBulge | ||
) |
Sets point and bulge by index.
double FacetModeler::Contour2D::signedArea | ( | ) | const |
Returns signed area of the contour
|
inline |
Returns start contour parameter.
Definition at line 422 of file FMContour2D.h.
bool FacetModeler::Contour2D::threatAsSmoothCurveAt | ( | OdUInt32 | iIndex | ) | const |
Returns "smooth" flag value. It used to create smooth surfases when generating extrusion or revolution body.
Result FacetModeler::Contour2D::transformBy | ( | const OdGeMatrix2d & | mMatrix, |
const DeviationParams & | devDeviation = FMGeGbl::gDefDev |
||
) |
Transforms the contour.
bool FacetModeler::Contour2D::traverse | ( | Contour2DTraversingReactor & | reactor | ) | const |
Traverses the contour.
|
static |
An empty static contour
Definition at line 832 of file FMContour2D.h.