Interface to Alias curve on surface locators.
#include <AlCurveOnSurfaceLocator.h>
class AlCurveOnSurfaceLocator : public AlPointLocator
AlCurveOnSurfaceLocator();
virtual ~AlCurveOnSurfaceLocator();
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;
A locator can be created in the parametric space of an AlCurveOnSurface. This locator can be queried for the curve normals, tangent, and position in a world coordinate system. This class contains methods for creating and moving the locator in the parametric space of the curve on surface.
If the AlCurveOnSurface or its AlSurface is deleted, the curve on surface locator created on it is automatically deleted.
Constructs an AlCurveOnSurfaceLocator wrapper object.
Deletes an AlCurveOnSurfaceLocator wrapper object.
Returns an exact copy of the AlCurveOnSurfaceLocator wrapper.
Creates a locator on the given curve on surface.
curveOnSurface - the curve on surface on which the locator is to be created
u - the parameter at which the locator is to be created
sSuccess - the locator was successfully created
sAlreadyCreated - the object has already been created
sFailure - the locator could not be created on the curve on surface
sInvalidArgument - the curve is not a valid object
Moves the position of a locator created on a curve on surface.
u - the parameter on the curve on surface to where the locator has to be moved
sSuccess - the locator was moved
sInvalidObject - the locator is not valid
Finds the parameter value at which the locator is present.
u - the curve parameter where the locator is present
sSuccess - the parameter was found
sInvalidObject - the locator is not valid
Finds the world coordinates of the locator.
x, y, z - the world coordinates of the locator
sSuccess - the coordinates were found
sInvalidObject - the locator is not valid
Finds the tangent vector to the curve at the point where the locator is present.
x, y, z - the x, y, and z components of the tangent
sSuccess - the tangent was found
sInvalidObject - the locator is not valid
Finds the normal to the curve on surface at the point where the locator is present.
x, y, z - the x, y, and z components of the normal
sSuccess - the normal was found
sInvalidObject - the locator is not valid
Finds the second normal to the curve on surface at the point where the locator is present.
x, y, z - the x, y, and z components of the second normal vector that has been normalized
sSuccess - the normal was found
sInvalidObject - the locator is not valid
Finds the length of the curve on surface on which the locator is present.
> arcLen - the length of the curve
sSuccess - the arc length was found
sInvalidObject - the locator is not valid
Returns the class identifier kCurveOnSurfaceLocatorType.