CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FacetModeler::Profile3D Class Reference

#include <FMProfile3D.h>

Inheritance diagram for FacetModeler::Profile3D:
FacetModeler::Profile2D FacetModeler::Wrapper3D

Public Member Functions

 Profile3D ()
 
 Profile3D (const Profile2D &cFrom2d)
 
 Profile3D (const Profile2D &cFrom2d, const OdGeMatrix3d &mMatrix)
 
 Profile3D (const Profile2D &cFrom2d, const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis)
 
 Profile3D (const Profile2D &cFrom2d, const OdGePlane &rPlane)
 
 Profile3D (const OdGeMatrix3d &mMatrix)
 
 Profile3D (const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis, const OdGePoint3d &ptOrigin=OdGePoint3d::kOrigin)
 
 Profile3D (const OdGePlane &pPlane)
 
Result transformBy (const OdGeMatrix2d &mMatrix, const DeviationParams &devDeviation=FMGeGbl::gDefDev)
 
Result transformBy (const OdGeMatrix3d &mMatrix)
 
void swap (Profile2D &rAnother)
 
void swap (Profile3D &rAnother)
 
const Profile2Das2d () const
 
Profile2Das2d ()
 
 ~Profile3D ()
 
- Public Member Functions inherited from FacetModeler::Profile2D
 Profile2D ()
 
 Profile2D (const Contour2D &rSrcCont)
 
 Profile2D (const Profile2D &rSrc)
 
Profile2Doperator= (const Profile2D &rSrc)
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
size_type max_size () const
 
const_reference operator[] (size_type iPos) const
 
reference operator[] (size_type iPos)
 
const_reference front () const
 
reference front ()
 
const_reference back () const
 
reference back ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
void clear ()
 
void resize (size_type iSize)
 
void reserve (size_type iNewCapacity)
 
Contour2Dpush_back ()
 
Contour2Dpush_back (ContourImplClass eCC)
 
void push_back (const Contour2D &rVal)
 
void push_back (const Profile2D &rProfile)
 
void pop_back ()
 
void erase (size_type iPos)
 
iterator erase (iterator itWhere)
 
iterator erase (iterator itFirst, iterator itLast)
 
void insert (size_type iPos, const Contour2D &rVal)
 
iterator insert (iterator itWhere, const Contour2D &rVal)
 
void insert (iterator itWhere, const_iterator itFirst, const_iterator itLast)
 
void swap (Profile2D &rAnother)
 
Result addExtents (OdGeExtents2d &extExtents) const
 
bool hasNonEmptyContours () const
 
void reverse ()
 
Result transformBy (const OdGeMatrix2d &mMatrix, const DeviationParams &devDeviation=FMGeGbl::gDefDev)
 
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 (Profile2D &rDestProfile, const DeviationParams &devDeviation=FMGeGbl::gDefDev, OdIntPtr uArcMetadata=0) const
 
double perimeter () const
 
void getAdjustedProfile (double dWidth, double dDepth, bool bAdjustWidth, bool bAdjustDepth, bool bMirrorInX, bool bMirrorInY, double dRotation, Profile2D &rResult) const
 
void fit (const OdGeExtents2d &extBoundingBox, const DeviationParams &devDeviation=FMGeGbl::gDefDev)
 
void fit (const OdGeExtents2d &extBoundingBox, bool bFitX, bool bFitY, const DeviationParams &devDeviation=FMGeGbl::gDefDev)
 
Result getOffsetProfile (double dOffset, Profile2D &rResult, FilletType eFilletType=eftExtend, const OdGeTol &gTol=FMGeGbl::gTol) const
 
void getHoles (Profile2D &rHolesProfile) const
 
void getWithoutHoles (Profile2D &rNoHolesProfile) const
 
Result getFaces (std::vector< Profile2D > &aFaces) const
 
void split (const OdGeLine2d &lCutter, Profile2D &rRght, Profile2D &rLeft) const
 
Result setAllMetadata (OdIntPtr uNewData, OdIntPtr uBitsToModify=INT_MAX)
 
Result regularizeTo (Profile2D &rDest, const OdGeTol &gTol=FMGeGbl::gTol) const
 
bool isValidRegion (const OdGeTol &gTol=FMGeGbl::gTol) const
 
double signedArea () const
 
Result getSingleContour (Contour2D &rDest, const OdGeTol &gTol=FMGeGbl::gTol) const
 
bool contains (const OdGePoint2d &ptTest, bool *pOnBorder=NULL, const OdGeTol &gTol=FMGeGbl::gTol) const
 
 ~Profile2D ()
 
- Public Member Functions inherited from FacetModeler::Wrapper3D
 Wrapper3D ()
 
 Wrapper3D (const OdGeMatrix3d &rMatrix)
 
 Wrapper3D (const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis, const OdGePoint3d &ptOrigin=OdGePoint3d::kOrigin)
 
 Wrapper3D (const OdGePlane &rPlane)
 
OdGePlane plane () const
 
const OdGeMatrix3dtransform () const
 
const OdGeMatrix3dinversedTransform () const
 
Result setTransform (const OdGeMatrix3d &mTransform)
 
Result setTransform (const OdGeVector3d &vXAxis, const OdGeVector3d &vYAxis, const OdGePoint3d &ptOrigin=OdGePoint3d::kOrigin)
 
Result transformBy (const OdGeMatrix3d &mMatrix)
 
void to3D (const OdGePoint2d &rSource2D, OdGePoint3d &rDest3D) const
 
void to3D (const OdGeVector2d &rSource2D, OdGeVector3d &rDest3D) const
 
Result to2D (const OdGePoint3d &rSource3D, OdGePoint2d &rDest2D) const
 
Result to2D (const OdGeVector3d &rSource3D, OdGeVector2d &rDest2D) const
 
void swap (Wrapper3D &rAnother)
 

Additional Inherited Members

- Public Types inherited from FacetModeler::Profile2D
typedef Contour2D value_type
 
typedef const Contour2Dconst_reference
 
typedef Contour2Dreference
 
typedef const Contour2Dconst_pointer
 
typedef Contour2Dpointer
 
typedef OdUInt32 size_type
 
typedef const Contour2Dconst_iterator
 
typedef Contour2Diterator
 
- Static Public Member Functions inherited from FacetModeler::Profile2D
static bool PerformOperation (BooleanOperation eOperation, const Profile2D &rArg1, const Profile2D &rArg2, Profile2D &rResult, const OdGeTol &tol=FMGeGbl::gTol)
 
- Static Public Attributes inherited from FacetModeler::Profile2D
static FMGEOMETRY_API_STATIC const Profile2D kNull
 

Detailed Description

2D profile in 3D space.

Remarks
Contains a 2D profile and 3D transformation matrix.

Definition at line 39 of file FMProfile3D.h.

Constructor & Destructor Documentation

◆ Profile3D() [1/8]

FacetModeler::Profile3D::Profile3D ( )

Default constructor.

◆ Profile3D() [2/8]

FacetModeler::Profile3D::Profile3D ( const Profile2D cFrom2d)
explicit

Constructor. Creates a Profile3D object using the specified Profile2D object without a transformation.

Parameters
cFrom2d[in] 2D profile.

◆ Profile3D() [3/8]

FacetModeler::Profile3D::Profile3D ( const Profile2D cFrom2d,
const OdGeMatrix3d mMatrix 
)
explicit

Constructor. Creates a Profile3D object using the specified Profile2D object and a transformation matrix.

Parameters
cFrom2d[in] 2D profile.
mMatrix[in] Transformation matrix as OdGeMatrix3d.

◆ Profile3D() [4/8]

FacetModeler::Profile3D::Profile3D ( const Profile2D cFrom2d,
const OdGeVector3d vXAxis,
const OdGeVector3d vYAxis 
)
explicit

Constructor. Creates a Profile3D object using the specified Profile2D object and plane axes.

Parameters
cFrom2d[in] 2D profile.
vXAxis[in] Plane X axis vector as OdGeVector3d.
vYAxis[in] Plane Y axis vector as OdGeVector3d.

◆ Profile3D() [5/8]

FacetModeler::Profile3D::Profile3D ( const Profile2D cFrom2d,
const OdGePlane rPlane 
)
explicit

Constructor. Creates a Profile3D object using the specified Profile2D object and plane.

Parameters
cFrom2d[in] 2D profile.
rPlane[in] Profile plane as OdGePlane.

◆ Profile3D() [6/8]

FacetModeler::Profile3D::Profile3D ( const OdGeMatrix3d mMatrix)
explicit

Constructor. Creates a Profile3D object using the specified transformation matrix.

Parameters
mMatrix[in] Transformation matrix as OdGeMatrix3d.

◆ Profile3D() [7/8]

FacetModeler::Profile3D::Profile3D ( const OdGeVector3d vXAxis,
const OdGeVector3d vYAxis,
const OdGePoint3d ptOrigin = OdGePoint3d::kOrigin 
)
explicit

Constructor. Creates a Profile3D object using the specified plane axes and origin point.

Parameters
vXAxis[in] Plane X axis vector as OdGeVector3d.
vYAxis[in] Plane Y axis vector as OdGeVector3d.
ptOrigin[in] Origin point as OdGePoint3d.

◆ Profile3D() [8/8]

FacetModeler::Profile3D::Profile3D ( const OdGePlane pPlane)
explicit

Constructor. Creates a Profile3D object using the specified plane.

Parameters
pPlane[in] Profile plane as OdGePlane.

◆ ~Profile3D()

FacetModeler::Profile3D::~Profile3D ( )

Destructor.

Member Function Documentation

◆ as2d() [1/2]

Profile2D & FacetModeler::Profile3D::as2d ( )
inline

Casts this profile to a Profile2D object.

Returns
Reference to the resulting Profile2D object.

Definition at line 151 of file FMProfile3D.h.

◆ as2d() [2/2]

const Profile2D & FacetModeler::Profile3D::as2d ( ) const
inline

Casts this profile to a Profile2D object.

Returns
Reference to the resulting Profile2D object as a const Profile2D.

Definition at line 144 of file FMProfile3D.h.

◆ swap() [1/2]

void FacetModeler::Profile3D::swap ( Profile2D rAnother)

Swaps 2D data of this profile with another 2D profile but keeps the 3D transform.

Parameters
rAnother[in] 2D profile to swap data with.

◆ swap() [2/2]

void FacetModeler::Profile3D::swap ( Profile3D rAnother)

Swaps 2D data and the 3D transform of this profile with another 3D profile.

Parameters
rAnother[in] 3D profile to swap data with.

◆ transformBy() [1/2]

Result FacetModeler::Profile3D::transformBy ( const OdGeMatrix2d mMatrix,
const DeviationParams devDeviation = FMGeGbl::gDefDev 
)

Applies the specified 2D transformation matrix to the profile with specified deviation parameters (transforms all points of the profile).

Parameters
mMatrix[in] 2D transformation matrix.
devDeviation[in] Deviation parameters (specifies the maximum deviation: the minimum and maximum number of faces on arcs during faceting).
Returns
eOk if the transformation succeeded, or a corresponding error type otherwise.

◆ transformBy() [2/2]

Result FacetModeler::Profile3D::transformBy ( const OdGeMatrix3d mMatrix)

Applies the specified transformation matrix to the profile (transforms the Wrapper3D matrix).

Parameters
mMatrix[in] 3D transformation matrix.
Returns
eOk if the transformation succeeded, or a corresponding error type otherwise.

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