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

#include <GeCubicSplineCurve3d.h>

Inheritance diagram for OdGeCubicSplineCurve3d:
OdGeSplineEnt3d OdGeCurve3d OdGeEntity3d

Public Member Functions

 OdGeCubicSplineCurve3d ()
 
 OdGeCubicSplineCurve3d (const OdGeCubicSplineCurve3d &source)
 
 OdGeCubicSplineCurve3d (const OdGePoint3dArray &fitPnts, const OdGeTol &tol=OdGeContext::gTol)
 
 OdGeCubicSplineCurve3d (const OdGePoint3dArray &fitPnts, const OdGeVector3d &startDeriv, const OdGeVector3d &endDeriv, const OdGeTol &tol=OdGeContext::gTol)
 
 OdGeCubicSplineCurve3d (const OdGeCurve3d &curve, double epsilon=OdGeContext::gTol.equalPoint())
 
 OdGeCubicSplineCurve3d (const OdGeKnotVector &knots, const OdGePoint3dArray &fitPnts, const OdGeVector3dArray &firstDerivs, bool isPeriodic=false)
 
int numFitPoints () const
 
OdGePoint3d fitPointAt (int fitPointIndex) const
 
OdGeCubicSplineCurve3d & setFitPointAt (int fitPointIndex, const OdGePoint3d &point)
 
OdGeVector3d firstDerivAt (int fitPointIndex) const
 
OdGeCubicSplineCurve3d & setFirstDerivAt (int fitPointIndex, const OdGeVector3d &deriv)
 
OdGeCubicSplineCurve3d & operator= (const OdGeCubicSplineCurve3d &spline)
 
- Public Member Functions inherited from OdGeSplineEnt3d
bool isRational () const
 
int degree () const
 
int order () const
 
int numKnots () const
 
const OdGeKnotVector & knots () const
 
int numControlPoints () const
 
int continuityAtKnot (int index, const OdGeTol &tol=OdGeContext::gTol) const
 
double startParam () const
 
double endParam () const
 
OdGePoint3d startPoint () const
 
OdGePoint3d endPoint () const
 
bool hasFitData () const
 
double knotAt (int knotIndex) const
 
OdGeSplineEnt3d & setKnotAt (int knotIndex, double val)
 
OdGePoint3d controlPointAt (int controlPointIndex) const
 
OdGeSplineEnt3d & setControlPointAt (int controlPointIndex, const OdGePoint3d &point)
 
OdGeSplineEnt3d & operator= (const OdGeSplineEnt3d &spline)
 
- Public Member Functions inherited from OdGeCurve3d
void getInterval (OdGeInterval &interval) const
 
void getInterval (OdGeInterval &interval, OdGePoint3d &start, OdGePoint3d &end) const
 
OdGeCurve3d & reverseParam ()
 
OdGeCurve3d & setInterval ()
 
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
 
OdGeEntity3d * project (const OdGePlane &projectionPlane, const OdGeVector3d &projectDirection, const OdGeTol &tol=OdGeContext::gTol) const
 
OdGeEntity3d * orthoProject (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
 
OdGeCurve3d & operator= (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
 
OdGeCurve2d * convertTo2d (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
 
OdGeEntity3d * copy () const
 
OdGeEntity3d & operator= (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
 
OdGeEntity3d & transformBy (const OdGeMatrix3d &xfm)
 
OdGeEntity3d & translateBy (const OdGeVector3d &translateVec)
 
OdGeEntity3d & rotateBy (double angle, const OdGeVector3d &vect, const OdGePoint3d &basePoint=OdGePoint3d::kOrigin)
 
OdGeEntity3d & mirror (const OdGePlane &plane)
 
OdGeEntity3d & scaleBy (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 OdGeSplineEnt3d
 OdGeSplineEnt3d ()
 
 OdGeSplineEnt3d (const OdGeSplineEnt3d &)
 
- 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 interpolation cubic spline curves. Currently not implemented.

Corresponding C++ library: TD_Ge

<group OdGe_Classes>

Definition at line 39 of file GeCubicSplineCurve3d.h.

Constructor & Destructor Documentation

◆ OdGeCubicSplineCurve3d() [1/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( )

Default constructor for the OdGeCubicSplineCurve3d class. Constructs an empty cubic spline curve.

◆ OdGeCubicSplineCurve3d() [2/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( const OdGeCubicSplineCurve3d &  source)

Copy constructor for the OdGeCubicSplineCurve3d class. Copies the specified cubic spline curve. Currently not implemented.

Parameters
source[in] Object to copy.

◆ OdGeCubicSplineCurve3d() [3/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( const OdGePoint3dArray &  fitPnts,
const OdGeTol &  tol = OdGeContext::gTol 
)

Constructor for the OdGeCubicSplineCurve3d class. Constructs a periodic (closed) cubic spline curve. The last fit point must equal to the first one. Currently not implemented.

Parameters
fitPnts[in] An array of 3D fit points.
tol[in] Geometric tolerance.

◆ OdGeCubicSplineCurve3d() [4/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( const OdGePoint3dArray &  fitPnts,
const OdGeVector3d &  startDeriv,
const OdGeVector3d &  endDeriv,
const OdGeTol &  tol = OdGeContext::gTol 
)

Constructor for the OdGeCubicSplineCurve3d class. Constructs a cubic spline curve based on fit points, starting and ending derivatives of the cubic spline curve. Currently not implemented.

Parameters
fitPnts[in] An array of 3D fit points.
startDeriv[in] Starting derivative of the cubic spline curve.
endDeriv[in] Ending derivative of this cubic spline curve.
tol[in] Geometric tolerance.

◆ OdGeCubicSplineCurve3d() [5/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( const OdGeCurve3d &  curve,
double  epsilon = OdGeContext::gTol.equalPoint() 
)

Constructor for objects of the OdGeCubicSplineCurve3d class. Constructs a cubic spline curve from the passed curve that is approximated according to the specified approximation precision. Currently not implemented.

Parameters
curve[in] A curve to be approximated by this cubic spline curve.
epsilon[in] Approximation precision.

◆ OdGeCubicSplineCurve3d() [6/6]

OdGeCubicSplineCurve3d::OdGeCubicSplineCurve3d ( const OdGeKnotVector &  knots,
const OdGePoint3dArray &  fitPnts,
const OdGeVector3dArray &  firstDerivs,
bool  isPeriodic = false 
)

Constructor for objects of the OdGeCubicSplineCurve3d class. Constructs a cubic spline curve based on fit points, knot vectors and first derivatives at the fit points and option that specifies whether cubic spline curve should be closed.

Parameters
fitPnts[in] An array of 3D fit points.
knots[in] Knot vector.
isPeriodic[in] True if the cubic spline curve should be periodic (closed).
firstDerivs[in] Array of first derivatives at the fit points.
Remarks
Currently not implemented.

Member Function Documentation

◆ firstDerivAt()

OdGeVector3d OdGeCubicSplineCurve3d::firstDerivAt ( int  fitPointIndex) const

Returns the first derivative at the specified index.

Parameters
fitPointIndex[in] Fit point index.
Returns
First derivative at the specified index.
Remarks
Currently not implemented.

◆ fitPointAt()

OdGePoint3d OdGeCubicSplineCurve3d::fitPointAt ( int  fitPointIndex) const

Returns the fit point at the specified index.

Parameters
fitPointIndex[in] Fit point index.
Returns
Fit point at the specified index.
Remarks
Currently not implemented.

◆ numFitPoints()

int OdGeCubicSplineCurve3d::numFitPoints ( ) const

Returns the number of fit points.

Returns
Number of fit points.
Remarks
Currently not implemented.

◆ operator=()

OdGeCubicSplineCurve3d & OdGeCubicSplineCurve3d::operator= ( const OdGeCubicSplineCurve3d &  spline)

Assignment operator for the OdGeCubicSplineCurve3d class. Assigns properties of the specified cubic spline curve. Currently not implemented.

Parameters
spline[in] Cubic spline curve to assign.

◆ setFirstDerivAt()

OdGeCubicSplineCurve3d & OdGeCubicSplineCurve3d::setFirstDerivAt ( int  fitPointIndex,
const OdGeVector3d &  deriv 
)

Sets the first derivative at the specified index, and returns a reference to this curve.

Parameters
fitPointIndex[in] Fit point index.
deriv[in] The first derivative at the fit point.
Returns
Reference to this curve.
Remarks
Currently not implemented.

◆ setFitPointAt()

OdGeCubicSplineCurve3d & OdGeCubicSplineCurve3d::setFitPointAt ( int  fitPointIndex,
const OdGePoint3d &  point 
)

Sets the fit point at the specified index, and returns a reference to this curve.

Parameters
fitPointIndex[in] Fit point index.
point[in] Any 3D point.
Returns
Reference to this curve.
Remarks
Currently not implemented.

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