AlIntersect
Support for intersection of objects
Synopsis
#include <AlIntersect.h>
class AlIntersect
static statusCode intersect( AlCurve* curve1, AlCurve* curve2,
AlList* &cclist );
static statusCode intersect( AlCurve* curve, AlSurface* surface,
AlList* &cslist );
static statusCode intersect( AlSurface* surface1, AlSurface* surface2,
AlIntersectSurfSurfInfo& ss );
class AlIntersectCurveCurveInfo : public AlLinkItem
AlIntersectCurveCurveInfo* Next() const;
double tCurve1, tCurve2;
double point[3];
class AlIntersectCurveSurfInfo : public AlLinkItem
AlIntersectCurveSurfInfo* Next() const;
double t;
double pointOnCurve[3];
double u,v;
double pointOnSurface[3];
class AlIntersectSurfSurfInfo
int numberIsolatedPoints;
double3* isolatedPoints;
int numberIntersectionCurves;
AlCurve** intersectionCurves;
int numberBoundaryCurves;
AlCurve** boundaryCurves;
~AlIntersectSurfSurfInfo();
Description
This collection of classes provides the programmer with the ability to determine points of intersection between two curves, a curve and a surface, or two surfaces.
Each type of intersection responds with its own class of results: AlIntersectCurveCurveInfo, AlIntersectCurveSurfInfo, and AlIntersectSurfSurfInfo. The first two of these are simple AlList classes. The last one is a stucture storing pointers to AlCurves and (x/y/z) points.
Summary
AlIntersectCurveCurveInfo* AlIntersectCurveCurveInfo::Next() const
Description
Returns the next item in the AlIntersectCurveCurveInfo list.
AlIntersectCurveSurfInfo* AlIntersectCurveSurfInfo::Next() const
Description
Returns the next item in the AlIntersectCurveSurfInfo list.
AlIntersectSurfSurfInfo::~AlIntersectSurfSurfInfo()
Description
Destructor for AlIntersectSurfSurfInfo. Only deletes the isolatedPoints[] array, so that the user may choose which AlCurves to keep.
statusCode AlIntersect::intersect( AlCurve* curve, AlSurface* surface,AlList* &list )
Description
This method intersects a curve with a surface. Points of intersection are returned in a AlIntersectCurveSurfInfo list, giving (x,y,z) coordinates, (u,v) parameters, and (t) parameters.
Arguments
< curve - a valid AlCurve to intersect
< surface - a valid surface to intersect
> list - the points of intersection (see AlIntersectCurveSurfInfo)
Return codes
sSuccess - successful intersection (not necessarily any points of intersection)
sInvalidArgument - the curve/surface was invalid;
statusCode AlIntersect::intersect( AlCurve* curve1, AlCurve* curve2,AlList* &list )
Description
This method intersects a curve with another curve. Points of intersection are returned in a AlIntersectCurveCurveInfo list, giving (x,y,z) coordinates and (t) parameters.
Arguments
< curve1 - a valid AlCurve to intersect
< curve2 - a valid AlCurve to intersect
> list - the points of intersection (see AlIntersectCurveCurveInfo)
Return codes
sSuccess - successful intersection (not necessarily any points of intersection)
sInvalidArgument - a curve was invalid;
statusCode AlIntersect::intersect( AlSurface* surface1, AlSurface* surface2,AlIntersectSurfSurfInfo &ss )
Description
This method intersects a surface with another surface. Points of intersection are returned in a AlIntersectSurfSurf list, giving AlCurves and (x,y,z) points.
Arguments
< surface1 - a valid AlCurve to intersect
< surface2 - a valid AlCurve to intersect
> ss - the points of intersection (see AlIntersectSurfSurfInfo)
Return codes
sSuccess - successful intersection (not necessarily any points of
intersection)
sInsufficientMemory - not enough memory to perform intersection
sInvalidArgument - a surface was invalid;
aliasdocs@aw.sgi.com
Copyright © 1996, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.