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

#include <GeOffsetCurve3d.h>

Inheritance diagram for OdGeOffsetCurve3d:
OdGeCurve3d OdGeEntity3d

Public Member Functions

 OdGeOffsetCurve3d ()
 
 OdGeOffsetCurve3d (const OdGeCurve3d &baseCurve, const OdGeVector3d &planeNormal, double offsetDistance, bool makeCopy=false)
 
 OdGeOffsetCurve3d (const OdGeOffsetCurve3d &source)
 
const OdGeCurve3dcurve () const
 
OdGeVector3d normal () const
 
double offsetDistance () const
 
bool paramDirection () const
 
OdGeMatrix3d transformation () const
 
OdGeOffsetCurve3dsetCurve (const OdGeCurve3d &baseCurve, bool makeCopy=false)
 
OdGeOffsetCurve3dsetNormal (const OdGeVector3d &planeNormal)
 
OdGeOffsetCurve3dsetOffsetDistance (double offsetDistance)
 
OdGeOffsetCurve3doperator= (const OdGeOffsetCurve3d &offsetCurve)
 
- Public Member Functions inherited from OdGeCurve3d
void getInterval (OdGeInterval &interval) const
 
void getInterval (OdGeInterval &interval, OdGePoint3d &start, OdGePoint3d &end) const
 
OdGeCurve3dreverseParam ()
 
OdGeCurve3dsetInterval ()
 
bool setInterval (const OdGeInterval &interval)
 
double distanceTo (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
double distanceTo (const OdGeCurve3d &curve, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointTo (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointTo (const OdGeCurve3d &curve, OdGePoint3d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d closestPointTo (const OdGePoint3d &point, double &param, const OdGeInterval *range, const OdGeTol &tol=OdGeContext::gTol) const
 
void getClosestPointTo (const OdGePoint3d &point, OdGePointOnCurve3d &pntOnCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
void getClosestPointTo (const OdGeCurve3d &curve, OdGePointOnCurve3d &pntOnThisCrv, OdGePointOnCurve3d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d projClosestPointTo (const OdGePoint3d &point, const OdGeVector3d &projectDirection, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGePoint3d projClosestPointTo (const OdGeCurve3d &curve, const OdGeVector3d &projectDirection, OdGePoint3d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
void getProjClosestPointTo (const OdGePoint3d &point, const OdGeVector3d &projectDirection, OdGePointOnCurve3d &pntOnCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
void getProjClosestPointTo (const OdGeCurve3d &curve, const OdGeVector3d &projectDirection, OdGePointOnCurve3d &pntOnThisCrv, OdGePointOnCurve3d &pntOnOtherCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
bool getNormalPoint (const OdGePoint3d &point, OdGePointOnCurve3d &pntOnCrv, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeBoundBlock3d boundBlock () const
 
OdGeBoundBlock3d boundBlock (const OdGeInterval &range) const
 
OdGeBoundBlock3d orthoBoundBlock () const
 
OdGeBoundBlock3d orthoBoundBlock (const OdGeInterval &range) const
 
OdGeExtents3d getGeomExtents (const OdGeInterval &range=OdGeInterval(), const OdGeMatrix3d *coordSystem=NULL) const
 
OdGeEntity3dproject (const OdGePlane &projectionPlane, const OdGeVector3d &projectDirection, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity3dorthoProject (const OdGePlane &projectionPlane, const OdGeTol &tol=OdGeContext::gTol) const
 
 TD_USING (OdGeEntity3d::isOn)
 
bool isOn (const OdGePoint3d &point, double &param, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isOn (double param, const OdGeTol &tol=OdGeContext::gTol) const
 
double paramOf (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 
double paramOf (const OdGePoint3d &point, const OdGeInterval *range, const OdGeTol &tol=OdGeContext::gTol) const
 
void getTrimmedOffset (double distance, const OdGeVector3d &planeNormal, OdGeCurve3dPtrArray &offsetCurveList, OdGe::OffsetCrvExtType extensionType=OdGe::kFillet, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isClosed (const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPlanar (OdGePlane &plane, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isLinear (OdGeLine3d &line, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isCoplanarWith (const OdGeCurve3d &curve, OdGePlane &plane, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isPeriodic (double &period) const
 
double length (double fromParam, double toParam, double tol=OdGeContext::gTol.equalPoint()) const
 
double length (double tol=OdGeContext::gTol.equalPoint()) const
 
double paramAtLength (double datumParam, double length, bool posParamDir=true, double tol=OdGeContext::gTol.equalPoint()) const
 
bool area (double startParam, double endParam, double &value, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isDegenerate (OdGe::EntityId &degenerateType, const OdGeTol &tol=OdGeContext::gTol) const
 
bool isDegenerate (OdGeEntity3d *&pConvertedEntity, const OdGeTol &tol=OdGeContext::gTol) const
 
void getSplitCurves (double param, OdGeCurve3d *&piece1, OdGeCurve3d *&piece2) const
 
bool explode (OdGeCurve3dPtrArray &explodedCurves, OdGeIntArray &newExplodedCurves, const OdGeInterval *pInterval=NULL) const
 
void getLocalClosestPoints (const OdGePoint3d &point, OdGePointOnCurve3d &approxPntOnThisCrv, const OdGeInterval *pInterval1=NULL, const OdGeTol &tol=OdGeContext::gTol) const
 
void getLocalClosestPoints (const OdGeCurve3d &curve, OdGePointOnCurve3d &approxPntOnThisCrv, OdGePointOnCurve3d &approxPntOnOtherCrv, const OdGeInterval *pInterval1=NULL, const OdGeInterval *pInterval2=NULL, const OdGeTol &tol=OdGeContext::gTol) const
 
bool hasStartPoint (OdGePoint3d &startPoint) const
 
bool hasEndPoint (OdGePoint3d &endPoint) const
 
bool hasMidPoint (OdGePoint3d &point, double coef=0.5) const
 
OdGePoint3d midPoint (double coef=0.5) const
 
OdGePoint3d evalPoint (double param) const
 
OdGePoint3d evalPoint (double param, int numDeriv, OdGeVector3dArray &derivatives) const
 
void getSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint3dArray &pointArray, OdGeDoubleArray &paramArray, bool forceResampling=false) const
 
void getSamplePoints (int numSample, OdGePoint3dArray &pointArray) const
 
void getSamplePoints (int numSample, OdGePoint3dArray &pointArray, OdGeDoubleArray &paramArray) const
 
OdGeCurve3doperator= (const OdGeCurve3d &curve)
 
void getSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint3dArray &pointArray, OdGeDoubleArray *paramArray=NULL) const
 
void getSamplePoints (const OdGeInterval *paramInterval, double approxEps, OdGePoint3dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
void appendSamplePoints (double fromParam, double toParam, double approxEps, OdGePoint3dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
void appendSamplePoints (int numSample, OdGePoint3dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
void appendSamplePoints (const OdGeInterval *paramInterval, double approxEps, OdGePoint3dArray &pointArray, OdGeDoubleArray *pParamArray=NULL) const
 
OdGeCurve2dconvertTo2d (const OdGeTol &tol=OdGeContext::gTol, bool sameParametrization=false) const
 
- Public Member Functions inherited from OdGeEntity3d
 ODRX_HEAP_OPERATORS ()
 
 ~OdGeEntity3d ()
 
bool isKindOf (OdGe::EntityId entType) const
 
OdGe::EntityId type () const
 
OdGeEntity3dcopy () const
 
OdGeEntity3doperator= (const OdGeEntity3d &entity)
 
bool operator== (const OdGeEntity3d &entity) const
 
bool operator!= (const OdGeEntity3d &entity) const
 
bool isEqualTo (const OdGeEntity3d &object, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity3dtransformBy (const OdGeMatrix3d &xfm)
 
OdGeEntity3dtranslateBy (const OdGeVector3d &translateVec)
 
OdGeEntity3drotateBy (double angle, const OdGeVector3d &vect, const OdGePoint3d &basePoint=OdGePoint3d::kOrigin)
 
OdGeEntity3dmirror (const OdGePlane &plane)
 
OdGeEntity3dscaleBy (double scaleFactor, const OdGePoint3d &basePoint=OdGePoint3d::kOrigin)
 
bool isOn (const OdGePoint3d &point, const OdGeTol &tol=OdGeContext::gTol) const
 

Additional Inherited Members

- Protected Member Functions inherited from OdGeCurve3d
 OdGeCurve3d ()
 
 OdGeCurve3d (const OdGeCurve3d &source)
 
- Protected Member Functions inherited from OdGeEntity3d
 OdGeEntity3d ()
 
 OdGeEntity3d (const OdGeEntity3d &)
 
void connectTo (OdGeEntity3dImpl *)
 

Detailed Description

This class represents 3D curves that are exact offsets of other curves.

Remarks
Every GeOffsetCurve3d contains a pointer to the curve from which it is offset. Modifying the base curve modifies the offset curve. Modifying the offset curve does not modify the base curve. Actual base curve can be obtained by calling curve() method, it can be changed relative to the curve passed in constructor due to cloning under the flag in constructor or applying transformBy() and reverseParam() methods. setInterval() for an offset curve result create a curve that is an offset of the specified interval in the base curve.

This curve may be self-intersecting, even if the base curve is not. To create offset curves that are not self-intersecting, use OdGeCurve3d::getTrimmedOffset().

The base curve must be planar, and a normal to the plane must be specified. Positive offset distances at any point on the base curve are defined as 90° counterclockwise from the tangent of the base curve at that point.

An offset curve with a 0.0 offset distance is exact replica of the base curve. An offset curve with a non-zero 0.0 offset distance has a continuity of one less than that of the base curve. To insure that the offset curve is a valid curve, the base curve must have a continuity of at least 1.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 59 of file GeOffsetCurve3d.h.

Constructor & Destructor Documentation

◆ OdGeOffsetCurve3d() [1/3]

OdGeOffsetCurve3d::OdGeOffsetCurve3d ( )

Default constructor for the OdGeOffsetCurve3d class. Sets the base curve pointer to NULL, the offset distance to 0.0 and the normal to the plane is initialized by its default with coordinates (0, 0, 0).

◆ OdGeOffsetCurve3d() [2/3]

OdGeOffsetCurve3d::OdGeOffsetCurve3d ( const OdGeCurve3d baseCurve,
const OdGeVector3d planeNormal,
double  offsetDistance,
bool  makeCopy = false 
)

Sets the base curve pointer to baseCurve, the plain normal pointer to planeNormal, and the offset distance to offsetDistance.

Parameters
baseCurve[in] Any 3D curve to be set as the base curve.
planeNormal[in] A 3D vector to be set as the normal to the plane of the base curve.
offsetDistance[in] Offset distance.
makeCopy[in] If true, makes a copy of the base curve specified by the baseCurve parameter.
Remarks
If makeCopy is true, the constructor makes a copy of the 3D curve entity specified by the baseCurve parameter. The OdGeOffsetCurve3d object that is being created becomes the owner of the newly made copy of the given 3D curve. The direction of the offset is determined by the sign of the offsetDistance parameter and by the direction of planeNormal. The base curve must be planar and planeNormal must be perpendicular to the plane of the base curve.

There are two exceptions to this rule:

If the offset distance is 0, then planeNormal may be any vector, including the zero vector (it will not be used if the offset distance is 0). If the base curve is linear, then planeNormal must be perpendicular to the line of the curve.

◆ OdGeOffsetCurve3d() [3/3]

OdGeOffsetCurve3d::OdGeOffsetCurve3d ( const OdGeOffsetCurve3d source)

Creates a copy of the specified OdGeOffsetCurve3d object.

Parameters
source[in] Object to be copied.

Member Function Documentation

◆ curve()

const OdGeCurve3d * OdGeOffsetCurve3d::curve ( ) const

Returns a pointer to the base curve.

Returns
Pointer to the actual base curve.
Remarks
It can be different relative to the curve passed in constructor due to cloning under the flag in constructor or applying transformBy() and reverseParam() methods.

◆ normal()

OdGeVector3d OdGeOffsetCurve3d::normal ( ) const

Returns the normal to the base curve as a unit vector.

Returns
Unit vector of the normal to the base curve.

◆ offsetDistance()

double OdGeOffsetCurve3d::offsetDistance ( ) const

Returns the offset distance of this curve.

Returns
Offset distance to the base curve.
Remarks
Offset distance is a distance by which this curve is offset from the base curve. Positive offset distances at any point on the base curve are defined as 90° counterclockwise from the tangent of the base curve at that point.

◆ operator=()

OdGeOffsetCurve3d & OdGeOffsetCurve3d::operator= ( const OdGeOffsetCurve3d offsetCurve)

Assignment operator for the OdGeOffsetCurve3d object.

Parameters
offsetCurve[in] Offset curve to assign.
Returns
Reference to this OdGeOffsetCurve3d object.

◆ paramDirection()

bool OdGeOffsetCurve3d::paramDirection ( ) const

Checks whether this curve has the same parameter direction as the base curve.

Returns
True if this curve has the same parameter direction as the base curve, or false otherwise.

◆ setCurve()

OdGeOffsetCurve3d & OdGeOffsetCurve3d::setCurve ( const OdGeCurve3d baseCurve,
bool  makeCopy = false 
)

Sets the base curve for this OdGeOffsetCurve3d object.

Parameters
baseCurve[in] Any 3D curve to be set as the base curve.
makeCopy[in] If true, makes a copy of the base curve specified by the baseCurve parameter.
Returns
Reference to this OdGeOffsetCurve3d object.
Remarks
If makeCopy is true, the method makes a copy of the 3D curve entity specified by the baseCurve parameter. This OdGeOffsetCurve3d object becomes the owner of the newly made copy of the given 3D curve.

◆ setNormal()

OdGeOffsetCurve3d & OdGeOffsetCurve3d::setNormal ( const OdGeVector3d planeNormal)

Sets the normal to the plane of the base curve.

Returns
Reference to this OdGeOffsetCurve3d object.
Parameters
planeNormal[in] A 3D normal vector to the plane on which base curve lies.

◆ setOffsetDistance()

OdGeOffsetCurve3d & OdGeOffsetCurve3d::setOffsetDistance ( double  offsetDistance)

Sets the offset distance for this curve.

Returns
Reference to this OdGeOffsetCurve3d object.
Parameters
offsetDistance[in] Distance by which this curve is offset from the base curve.
Remarks
Positive offset distances at any point on the base curve are defined as 90° counterclockwise from the tangent of the base curve at that point. The direction of offset is determined by the sign of the distance parameter.

An offset curve with a 0.0 offset distance is exact replica of the base curve.

◆ transformation()

OdGeMatrix3d OdGeOffsetCurve3d::transformation ( ) const

Returns the concatenation of the transformation matrices applied to this curve with transformBy().

Returns
Transformation matrix applied to this curve as the concatenation of all of the transformation matrices applied to this curve with transformBy().
Remarks
If no transformation matrices have been applied to this curve, returns the identity matrix.

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