public class TLcdCartesianConstructiveGeometry extends java.lang.Object implements ILcdConstructiveGeometry
ILcdConstructiveGeometry
implementation for cartesian topology. This implementation supports
the following shapes:
Depending on the type of input shapes and the interaction of the input shapes, the output can be any of the following shapes or an ILcdShapeList containing the following shapes:
Constructor and Description 

TLcdCartesianConstructiveGeometry(double aTolerance)
Creates a new TLcdCartesianConstructiveGeometry.

Modifier and Type  Method and Description 

ILcdShape 
convexHull(ILcdShape... aShapes)
Finds the convex hull of the given shape or shapes.

ILcdShape 
difference(ILcdShape... aShapes)
Calculates the difference of the given shapes.

ILcdShape 
intersection(ILcdShape... aShapes)
Calculates the intersection of the given shapes.

ILcdShape 
symmetricDifference(ILcdShape... aShapes)
Calculates the symmetric difference of the given shapes.

ILcdShape 
union(ILcdShape... aShapes)
Calculates the union of the given shapes.

public TLcdCartesianConstructiveGeometry(double aTolerance)
Creates a new TLcdCartesianConstructiveGeometry.
The tolerance allows the calculation to treat nearby points of the two different shapes, as if they are coincident. If the tolerance is too large, incorrect results can occur. The calculations are most stable if the tolerance is smaller than the length of the smallest line segment.
aTolerance
 The tolerance in which points are considered equal, expressed in the same unit as the Cartesian coordinate system (e.g. meters).public ILcdShape union(ILcdShape... aShapes)
ILcdConstructiveGeometry
union
in interface ILcdConstructiveGeometry
aShapes
 The input shapes. There must be at least two shapes.public ILcdShape intersection(ILcdShape... aShapes)
ILcdConstructiveGeometry
intersection
in interface ILcdConstructiveGeometry
aShapes
 The input shapes. There must be at least two shapes.public ILcdShape difference(ILcdShape... aShapes)
ILcdConstructiveGeometry
difference
in interface ILcdConstructiveGeometry
aShapes
 The input shapes. There must be at least two shapes.public ILcdShape symmetricDifference(ILcdShape... aShapes)
ILcdConstructiveGeometry
symmetricDifference
in interface ILcdConstructiveGeometry
aShapes
 The input shapes. There must be at least two shapes.public ILcdShape convexHull(ILcdShape... aShapes)
ILcdConstructiveGeometry
convexHull
in interface ILcdConstructiveGeometry
aShapes
 the shape or shapes for which to find the convex hull.