Interface to Alias curve points.
#include <AlCurvePoint.h> class AlCurvePoint : public AlPoint AlCurvePoint(); ~AlCurvePoint(); virtual AlObject * copyWrapper() const; virtual AlObjectType type() const; statusCode create(const AlCurve *, double); statusCode setParameter(double); statusCode parameter(double &) const; virtual statusCode worldPosition(double &, double &, double &) const; statusCode tangent(double &, double &, double &) const; statusCode normal1(double &, double &, double &) const; statusCode normal2(double &, double &, double &) const; statusCode radius(double &) const; statusCode arcLength(double &) const; AlCurveNode *attachedTo();
A point can be created in the parametric space of any AlCurve. This point can be queried for the curve normals, tangent, position in world coordinate system, arc length, and curvature information. This class contains methods for creating, and moving the curve point.
If the AlCurve is deleted, the curve point created on it is deleted.
Constructs an AlCurvePoint wrapper object.
Deletes an AlCurvePoint wrapper object.
Returns an exact copy of the AlCurvePoint wrapper.
Returns the class identifier kCurvePointType.
Creates a point on the given curve
< curve - the curve on which the point is created.
< u - curve parameter at which point is created
sSuccess - the point was successfully created
sAlreadyCreated - object has already been created
sFailure - the point could not be created on the curve.
sInvalidArgument - the curve is not a valid object
Move the position of a point created on a curve
< u - the parameter on the curve where the point has to be moved.
sSuccess - the point was moved
sInvalidObject - the point is not valid
Find the parameter value at which the point is present
> u - the curve parameter where point is present
sSuccess - the parameter was found
sInvalidObject - the point is not valid
Find the world coordinates of the curve point
> x, y, z - the world coordinates of the curve point
sSuccess - the coordinates were found.
sInvalidObject - the point is not valid
Find the tangent vector to the curve at the point
> x, y, z - the X, Y, Z components of the tangent
sSuccess - the tangent was found.
sInvalidObject - the point is not valid
Find the normal to the curve at the point
> x, y, z - the X, Y, Z components of the normal
sSuccess - the normal was found.
sInvalidObject - the point is not valid
Find the second normal to the curve at the point
> x, y, z - the X, Y, Z components of the second normal normalized vector.
sSuccess - the normal was found.
sInvalidObject - the point is not valid
Find the radius of the curve at the point
> rad - the radius of the curve at the point.
sSuccess - the radius was found.
sInvalidObject - the point is not valid
Find the length of the curve on which the point is present
> arcLen - the length of the curve
sSuccess - the arc length was found.
sInvalidObject - the point is not valid
Returns the curve node that this point is associated with. NULL is returned if this method fails.