Interface to Alias curve on surface points.
#include <AlCurveOnSurfacePoint.h> class AlCurveOnSurfacePoint : public AlPoint AlCurveOnSurfacePoint(); ~AlCurveOnSurfacePoint(); virtual AlObject * copyWrapper() const; virtual AlObjectType type() const; statusCode create(const AlCurveOnSurface *, 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 arcLength(double &) const; AlCurveOnSurface * attachedTo();
A point can be created in the parametric space of a AlCurveOnSurface. This point can be queried for the curve normals, tangent, and position in world coordinate system. This class contains methods for creating, and moving the point in the parametric space of the curve on surface. If the AlCurveOnSurface or its AlSurface is deleted, the curve on surface point created on it is deleted.
Constructs an AlCurveOnSurfacePoint wrapper object.
Deletes an AlCurveOnSurfacePoint wrapper object.
Returns an exact copy of the AlCurveOnSurfacePoint wrapper.
Creates a point on the given curve on surface
< curveOnSurface - the curve on surface on which the point is to be created.
< u - the parameter at which point is to be created
sSuccess - the point was successfully created
sAlreadyCreated - object has already been created
sFailure - the point could not be created on the curve on surface.
sInvalidArgument - the curve is not a valid object
Move the position of a point created on a curve on surface
< u - the parameter on the curve on surface 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 point
> x, y, z - the world coordinates of the 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 on surface 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 on surface 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 length of the curve on surface 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 class identifier kCurveOnSurfacePointType.
Returns the curve on surface that this point is associated with. NULL is returned if this method fails.