AlTrimRegion

A list of trim boundaries defining a trim region.

Synopsis

#include <AlTrimRegion.h>
class AlTrimRegion : public AlObject
virtual ~AlTrimRegion();
virtual AlObject* copyWrapper() const;
virtual AlObjectType type() const;
virtual AlTrimRegion* asTrimRegionPtr();
AlDagNode* parentDagNode() const;
AlTrimBoundary* firstBoundary() const;
statusCode applyIteratorToBoundaries( AlIterator*, int& ) const;
AlTrimRegion* nextRegion() const;
statusCode nextRegionD();
AlTrimRegion* prevRegion() const;
statusCode prevRegionD();
// Stuff to get surface information
curveFormType uForm() const;
curveFormType vForm() const;
int uDegree() const;
int vDegree() const;
int uNumberOfSpans() const;
int vNumberOfSpans() const;
int uNumberOfCVs() const;
int vNumberOfCVs() const;
statusCode CVsWorldPosition( double[], int[], int[])const;
statusCode CVsAffectedPosition( const AlTM&, double[], int[], int[]) const;
statusCode CVsUnaffectedPosition( double[], int[], int[])const;
int uNumberOfKnots() const;
int vNumberOfKnots() const;
statusCode uKnotVector( double[] ) const;
statusCode vKnotVector( double[] ) const;
int uNumberOfCVsInclMultiples() const;
int vNumberOfCVsInclMultiples() const;
statusCode CVsWorldPositionInclMultiples( double[] ) const;
statusCode CVsAffectedPositionInclMultiples( const AlTM&, double[] ) const;
statusCode CVsUnaffectedPositionInclMultiples( double[] )const;
statusCode unpileEndKnots( int, const double[] );
int realuNumberOfKnots() const;
int realvNumberOfKnots() const;
statusCode realuKnotVector( double[] ) const;
statusCode realvKnotVector( double[] ) const;
statusCode eval(double,double,boolean,double P[3]=NULL, double Pu[3]=NULL, double Pv[3]=NULL, double n[3]=NULL,boolean=FALSE,boolean=FALSE ) const;

Description

This class defines a region of a surface's parametric space that identifies an area of interest on a surface. It holds at least one AlTrimBoundary object. The first boundary on the list represents the outermost boundary of a trim region, and the rest represent the inner boundaries (holes) if there are any.

For each trim boundary, the surface is to the left of the boundary when viewed from above (hence a hole is to the right of the boundary).

For example, in this diagram we have a surface represented by As. Each additional letter is an island trimmed out of A and each would be a separate AlTrimRegion. The AlTrimRegion for A would have two AlTrimBoundaries, B would have three, and C, D, and E would have one each.

AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AA AA
AA BBBBBBBBBBB CCCCCCCCCC AA
AA BBBBBBBBBBB CCCCCCCCCC AA
AA BB BBBB AA
AA BB EEE BBBBBBBBBBBBBBB AA
AA BB EEE BBBB BB AA
AA BB BBBB DDDDDDD BB AA
AA BBBBBBBBBBB DDDDDDD BB AA
AA BBBBBBBBBBB BB AA
AA BBBBBBBBBBBBBBBBBBBBBB AA
AA AA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAA

Summary

AlTrimRegion::~AlTrimRegion()

Description

Deletes an AlTrimRegion wrapper object.

AlObject *AlTrimRegion::copyWrapper() const

Description

Return an exact duplicate of this AlTrimRegion wrapper.

AlObjectType AlTrimRegion::type() const

Description

Returns the class identifier kTrimRegionType.

AlTrimRegion* AlTrimRegion::asTrimRegionPtr()

Description

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

AlDagNode * AlTrimRegion::parentDagNode() const

Description

Gets the parent DagNode above this trim region. NULL is returned if there is no parent.

AlTrimBoundary* AlTrimRegion::firstBoundary() const

Description

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

AlTrimRegion* AlTrimRegion::nextRegion() const

Description

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

statusCode AlTrimRegion::nextRegionD()

Description

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

Return codes

sSuccess - the wrapper now points to the next trim region

sFailure - there is no next trim region

sInvalidObject - the region is invalid

AlTrimRegion* AlTrimRegion::prevRegion() const

Description

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

statusCode AlTrimRegion::prevRegionD()

Description

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

Return codes

sSuccess - the wrapper now points to the previous trim region

sFailure - there is no previous trim region

sInvalidObject - the region is invalid

curveFormType AlTrimRegion::uForm() const

Description

See the documentation for this function in AlSurface.

curveFormType AlTrimRegion::vForm() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::uDegree() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::vDegree() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::uNumberOfSpans() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::vNumberOfSpans() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::uNumberOfCVs() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::vNumberOfCVs() const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsWorldPosition(double CVList[], int uMultiplicity[], int vMultiplicity[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsAffectedPosition( const AlTM& tm, double CVList[],int uMultiplicity[],int vMultiplicity[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsUnaffectedPosition( double CVList[],int uMultiplicity[],int vMultiplicity[] ) const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::uNumberOfKnots() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::vNumberOfKnots() const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::uKnotVector( double knotVector[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::vKnotVector( double knotVector[] ) const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::uNumberOfCVsInclMultiples() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::vNumberOfCVsInclMultiples() const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsWorldPositionInclMultiples( double CVList[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsAffectedPositionInclMultiples( const AlTM& tm, double CVList[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::CVsUnaffectedPositionInclMultiples( double CVList[] ) const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::realuNumberOfKnots() const

Description

See the documentation for this function in AlSurface.

int AlTrimRegion::realvNumberOfKnots() const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::realuKnotVector( double knotVector[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::realvKnotVector( double knotVector[] ) const

Description

See the documentation for this function in AlSurface.

statusCode AlTrimRegion::eval(double u, double v, boolean worldCoordinates, double P[3], double Pu[3], double Pv[3], double n[3], boolean uLimitFromBelow, boolean vLimitFromBelow ) const

Description

See the documentation for this function in AlSurface.





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