Table of Contents

Method TrySplitBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TrySplitBy(GeoLine2, out GeoFace2[], out GeoFace2[])

Cuts the face by the straight line through a segment.

public bool TrySplitBy(GeoLine2 cutter, out GeoFace2[] left, out GeoFace2[] right)

Parameters

cutter GeoLine2
left GeoFace2[]
right GeoFace2[]

Returns

bool

Remarks

The segment is read as the whole straight line through it, which is what a plane is to space, so its length is ignored: a segment crossing half the face cuts all of it. Left and right are read from the segment's own direction, so reversing it swaps the two answers and nothing else.

TrySplitBy(GeoLine2, out GeoFace2[], out GeoFace2[], Tolerance)

Cuts the face by the straight line through a segment, within a tolerance.

public bool TrySplitBy(GeoLine2 cutter, out GeoFace2[] left, out GeoFace2[] right, Tolerance tolerance)

Parameters

cutter GeoLine2
left GeoFace2[]
right GeoFace2[]
tolerance Tolerance

Returns

bool