Interface to Alias curve on surface locators
#include <AlCurveOnSurfaceLocator.h>
class AlCurveOnSurfaceLocator : public AlPointLocator
AlCurveOnSurfaceLocator();
~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 a AlCurveOnSurface. This locator can be queried for the curve normals, tangent, and position in 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 locator is to be created
sSuccess - the locator was successfully created
sAlreadyCreated - 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
Move the position of a locator created on a curve on surface.
< u - the parameter on the curve on surface where the locator has has to be moved.
sSuccess - the locator was moved
sInvalidObject - the locator is not valid
Find the parameter value at which the locator is present.
> u - the curve parameter where locator is present
sSuccess - the parameter was found
sInvalidObject - the locator is not valid
Find 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
Find the tangent vector to the curve at the point where the locator is present.
> x, y, z - the X, Y, Z components of the tangent
sSuccess - the tangent was found.
sInvalidObject - the locator is not valid
Find the normal to the curve on surface at the point where the locator is present.
> x, y, z - the X, Y, Z components of the normal
sSuccess - the normal was found.
sInvalidObject - the locator is not valid
Find the second normal to the curve on surface at the point where the locator is present.
> x, y, z - the X, Y, Z components of the second normal normalized
sSuccess - the normal was found.
sInvalidObject - the locator is not valid
Find 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.
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.