AlTrimBoundary

A list of trim curves defining a trim boundary.

Synopsis

#include <AlTrimBoundary.h>
class AlTrimBoundary : public AlObject
virtual ~AlTrimBoundary();
virtual AlObject* copyWrapper() const;
virtual AlObjectType type() const;
virtual AlTrimBoundary* asTrimBoundaryPtr();
AlTrimRegion* parentRegion() const;
AlDagNode* parentDagNode() const;
AlTrimCurve* firstCurve() const;
statusCode applyIteratorToCurves( AlIterator*, int& );
AlTrimBoundary* nextBoundary() const;
statusCode nextBoundaryD();
AlTrimBoundary* prevBoundary() const;
statusCode prevBoundaryD();
statusCode convertToUVPolyline( int &np, double *&CVList );

Description

This class holds a list of AlTrimCurve objects. The trim curves form a closed boundary which partition a surface. The trim curves are defined in a surface's parametric space.

Note that trim boundaries have the surface to the right of the defining curves.

Also, in the list of trim curves, the end point of a trim curve is coincident with the first point of its following trim curve. The end point of the last trim curve is coincident with the first point of the first trim curve.

Summary

AlTrimBoundary::~AlTrimBoundary()

Description

Deletes an AlTrimBoundary wrapper object.

AlObject *AlTrimBoundary::copyWrapper() const

Description

Return an exact duplicate of this AlTrimBoundary wrapper.

AlObjectType AlTrimBoundary::type() const

Description

Returns the class identifier kTrimBoundary type.

AlTrimBoundary* AlTrimBoundary::asTrimBoundaryPtr()

Description

This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.

AlTrimCurve* AlTrimBoundary::firstCurve() const

Description

Returns the first trim curve of a list of trim boundaries or NULL if this boundary has no curves.

AlTrimBoundary* AlTrimBoundary::nextBoundary() const

Description

Returns the next trim boundary. Returns NULL if there is no such trim boundary.

statusCode AlTrimBoundary::nextBoundaryD()

Description

Destructively points this wrapper to the next boundary. If there is no such boundary, then the object is left unchanged.

Return codes

sSuccess - the wrapper now points to the next boundary

sFailure - there is no next boundary

sInvalidObject - the trim boundary is invalid

AlTrimBoundary* AlTrimBoundary::prevBoundary() const

Description

Returns the previous trim boundary. Returns NULL if there is no such trim boundary.

statusCode AlTrimBoundary::prevBoundaryD()

Description

Destructively points this wrapper to the previous boundary. If there is no such boundary, then the object is left unchanged.

Return codes

sSuccess - the wrapper now points to the previous boundary

sFailure - there is no prev boundary

sInvalidObject - the trim boundary is invalid

statusCode AlTrimBoundary::convertToUVPolyline( int &n, double *& CVList )

Description

Converts the trim boundary to a uv polyline. The number of points in the polyline is returned in "n", and the points are returned in "CVList", which is essentially an array: CVList[n][2], but must be accessed as a single dimensional array; e.g. CVList[i * 2 + 0] for u and CVList[i * 2 + 1] for v.

Return codes

sSuccess - the array has been allocated, loaded and returned.

sFailure - parent does not exist, n will be 0, and CVList will be NULL.

sInvalidObject - the trim boundary is invalid





aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.