CurveBooleanRegions

References
Represents the results of a Curve.CreateBooleanRegions calculation.

Constructors

CurveBooleanRegions

#
Protected constructor used in serialization.
protected CurveBooleanRegions(
info,
Serialization data.
context
Serialization stream.
)

Properties

PlanarCurveCount

#Since v7.0
Returns number of planar curves that were calculated by Curve.CreateBooleanRegions.
public int PlanarCurveCount { get; }

PointCount

#Since v7.0
If this object were created using the Curve.CreateBooleanRegions override that accepts a collection of points as input, then this value will be equal to the length of the points collection.
public int PointCount { get; }

RegionCount

#Since v7.0
Returns the number of curve regions. A curve region is a collection of curves that bound a single connected region of the plane.
public int RegionCount { get; }

Methods

BoundaryCount

#Since v7.0
Returns the number of boundary curves in a curve region.
[ConstOperation] public int BoundaryCount(
regionIndex
The curve region index.
)
The number of boundary curves in the curve region.

Dispose

#Since v7.0
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()

Dispose

#
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method. You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true. Also, you must call the base virtual method within your overriding method.
protected virtual void Dispose(
disposing
)

PlanarCurve

#Since v7.0
Returns a planar curve that was calculated by Curve.CreateBooleanRegions.
[ConstOperation] public Curve PlanarCurve(
planarCurveIndex
)
The planar curve if successful, null if not successful.

RegionCurves

#Since v7.0
Returns the boundary curves in a curve region. A curve region is a collection of curves that bound a single connected region of the plane. Note, the first curve is always the outer boundary.
[ConstOperation] public Curve[] RegionCurves(
regionIndex
The curve region index.
)
An array of boundary curves if successful, an empty array if not successful.

RegionPointIndex

#Since v7.0
If this object were created using the Curve.CreateBooleanRegions override that accepts a collection of points as input, then you this method to retrieve the index of the point contained in a curve region. If this.RegionPointIndex(i) = n, then points[i] is contained in this.RegionCurves(n). If points[i] is not in any region, then this.RegionPointIndex(i) = -1.
[ConstOperation] public int RegionPointIndex(
pointIndex
The point index.
)
The index of the input point contained in the specified region if successful, or -1 if points[i] was not used in any region or if not successful.

SegmentCount

#Since v7.0
Returns the number of segments in a boundary curve in a curve region.
[ConstOperation] public int SegmentCount(
regionIndex,
The curve region index.
boundaryIndex
The boundary curve index.
)
The number of curve segments in th boundary curves.

SegmentDetails

#Since v7.0
Returns the details of a segment in a boundary curve in a curve region.
[ConstOperation] public int SegmentDetails(
regionIndex,
The curve region index.
boundaryIndex,
The boundary curve index.
segmmentIndex,
The segment index.
subDomain,
The sub-domain of the planar curve used by the segment.
out bool
reversed
true if the piece of the planar curve should be reversed.
)
The index of the planar curve used by the specified segment if successful, -1 if not successful.