API Documentation > Interface Classes > Class pfcGeomCurve
Class pfcGeomCurve

# include <pfcGeometry.h>

class
pfcGeomCurve
: public virtual
pfcObject
{
xaideclare(pfcGeomCurve)
...
};


Description
This class provides information for a geometry curve or edge.
Manual References:
Direct Known Subclasses:
Method Summary
Returns a pfcCurveXYZData object with information on the point represented by input parameter t.
EvalFromLength (xreal StartParameter, xreal Length)
Returns a CURVEXYZData object with information on the point that is a specified distance from the starting point as specified by input parameter t.
Finds the length of the specified edge.
EvalLengthBetween (xreal Param1, xreal Param2)
Finds the length of the specified curve between two given parameters.
Finds the corresponding normalized parameter on the curve, given the XYZ point.
This method returns a data object containing the geometry of the edge or curve.
Returns the feature which contains the geometry.
true if the geometry is visible and active, false if it is invisible and inactive. Inactive geometry may not have all geometric properties defined.
This method returns the geometry of the edge or curve as a non-uniform rational B-spline curve.
Method Detail
GetIsVisible
()
true if the geometry is visible and active, false if it is invisible and inactive. Inactive geometry may not have all geometric properties defined.
GetFeature
()
Returns the feature which contains the geometry.
Returns:
The feature.
Eval3DData
(xreal Param)
Returns a pfcCurveXYZData object with information on the point represented by input parameter t.
If the curve is a composite curve,first derivative pfcCurveXYZData::GetDerivative1(optional pfcVector3D_ptr) and second derivative pfcCurveXYZData::GetDerivative2(optional pfcVector3D_ptr) are not accessible and will benull.
Exceptions thrown (but not limited to):
pfcXToolkitNotImplemented - The argument p_curve represents a composite curve, while deriv1 or deriv2 is not NULL.
Manual References:
Parameters:
Param
The t parameter on the edge.
Returns:
The evaluation data, including the resulting point, the first and second derivatives, and the normal to the surface
EvalFromLength
(xreal StartParameter, xreal Length)
Returns a CURVEXYZData object with information on the point that is a specified distance from the starting point as specified by input parameter t.
Exceptions thrown (but not limited to):
pfcXToolkitBadSrfCrv - The input argument is invalid.
Manual References:
Parameters:
StartParameter
The starting t parameter
Length
The distance from the starting parameter t to the resulting point
Returns:
The point at the specified distance from the starting parameter
EvalParameter
(pfcPoint3D_ptr Point)
Finds the corresponding normalized parameter on the curve, given the XYZ point.
Manual References:
Parameters:
Point
The XYZ point. The point does not need to lie on the curve.If the point is not on the curve, the function finds the closest curve point.
Returns:
The t parameter that represents the input Point3D object.
EvalLength
()
Finds the length of the specified edge.
Manual References:
Returns:
The edge length
EvalLengthBetween
(xreal Param1, xreal Param2)
Finds the length of the specified curve between two given parameters.
Exceptions thrown (but not limited to):
pfcXToolkitBadSrfCrv - The input argument is invalid.
Manual References:
Parameters:
Param1
The start t parameter
Param2
The end t parameter
Returns:
The curve length between the parameters.
GetCurveDescriptor
()
This method returns a data object containing the geometry of the edge or curve.
Exceptions thrown (but not limited to):
pfcXToolkitInvalidType - The specified data is not a composite curve data structure.
Manual References:
Returns:
The edge or curve geometry
GetNURBSRepresentation
()
This method returns the geometry of the edge or curve as a non-uniform rational B-spline curve.
Manual References:
Returns:
The B-spline curve geometry
Was this helpful?