Table of Contents

Method Subtract

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Subtract(GeoPolygon3, GeoPolygon3)

Takes one shape out of another lying in the same plane.

public static GeoFace3[] Subtract(GeoPolygon3 first, GeoPolygon3 tool)

Parameters

first GeoPolygon3
tool GeoPolygon3

Returns

GeoFace3[]

Subtract(GeoPolygon3, GeoPolygon3, Tolerance)

Takes one shape out of another lying in the same plane, within a tolerance.

public static GeoFace3[] Subtract(GeoPolygon3 first, GeoPolygon3 tool, Tolerance tolerance)

Parameters

first GeoPolygon3

The polygon.

tool GeoPolygon3

The polygon; it has to lie in the first shape's plane.

tolerance Tolerance

The tolerance.

Returns

GeoFace3[]

The pieces the two make, in the plane they share.

Exceptions

ArgumentNullException

Thrown when either shape is null.

ArgumentException

Thrown when the two lie in different planes.

Subtract(GeoPolygon3, GeoFace3)

Takes one shape out of another lying in the same plane.

public static GeoFace3[] Subtract(GeoPolygon3 first, GeoFace3 tool)

Parameters

first GeoPolygon3
tool GeoFace3

Returns

GeoFace3[]

Subtract(GeoPolygon3, GeoFace3, Tolerance)

Takes one shape out of another lying in the same plane, within a tolerance.

public static GeoFace3[] Subtract(GeoPolygon3 first, GeoFace3 tool, Tolerance tolerance)

Parameters

first GeoPolygon3

The polygon.

tool GeoFace3

The face; it has to lie in the first shape's plane.

tolerance Tolerance

The tolerance.

Returns

GeoFace3[]

The pieces the two make, in the plane they share.

Exceptions

ArgumentNullException

Thrown when either shape is null.

ArgumentException

Thrown when the two lie in different planes.

Subtract(GeoFace3, GeoPolygon3)

Takes one shape out of another lying in the same plane.

public static GeoFace3[] Subtract(GeoFace3 first, GeoPolygon3 tool)

Parameters

first GeoFace3
tool GeoPolygon3

Returns

GeoFace3[]

Subtract(GeoFace3, GeoPolygon3, Tolerance)

Takes one shape out of another lying in the same plane, within a tolerance.

public static GeoFace3[] Subtract(GeoFace3 first, GeoPolygon3 tool, Tolerance tolerance)

Parameters

first GeoFace3

The face.

tool GeoPolygon3

The polygon; it has to lie in the first shape's plane.

tolerance Tolerance

The tolerance.

Returns

GeoFace3[]

The pieces the two make, in the plane they share.

Exceptions

ArgumentNullException

Thrown when either shape is null.

ArgumentException

Thrown when the two lie in different planes.

Subtract(GeoFace3, GeoFace3)

Takes one shape out of another lying in the same plane.

public static GeoFace3[] Subtract(GeoFace3 first, GeoFace3 tool)

Parameters

first GeoFace3
tool GeoFace3

Returns

GeoFace3[]

Subtract(GeoFace3, GeoFace3, Tolerance)

Takes one shape out of another lying in the same plane, within a tolerance.

public static GeoFace3[] Subtract(GeoFace3 first, GeoFace3 tool, Tolerance tolerance)

Parameters

first GeoFace3

The face.

tool GeoFace3

The face; it has to lie in the first shape's plane.

tolerance Tolerance

The tolerance.

Returns

GeoFace3[]

The pieces the two make, in the plane they share.

Exceptions

ArgumentNullException

Thrown when either shape is null.

ArgumentException

Thrown when the two lie in different planes.