CurveBooleanRegions
ReferencesRepresents the results of a Curve.CreateBooleanRegions calculation.
Constructors
CurveBooleanRegions
#Protected constructor used in serialization.
Parameters:
| info (SerializationInfo) | Serialization data. |
| context (StreamingContext) | Serialization stream. |
Properties
Returns number of planar curves that were calculated by Curve.CreateBooleanRegions.
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.
Methods
Returns the number of boundary curves in a curve region.
Parameters:
| regionIndex (int) | The curve region index. |
Returns: The number of boundary curves in the curve region.
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.
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.
Parameters:
| disposing (bool) |
Returns a planar curve that was calculated by Curve.CreateBooleanRegions.
Parameters:
| planarCurveIndex (int) |
Returns: The planar curve if successful, null if not successful.
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.
Parameters:
| regionIndex (int) | The curve region index. |
Returns: An array of boundary curves if successful, an empty array if not successful.
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.
Parameters:
| pointIndex (int) | The point index. |
Returns: 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.
Returns the number of segments in a boundary curve in a curve region.
[ConstOperation]
public int SegmentDetails(int regionIndex, int boundaryIndex, int segmmentIndex, out Interval subDomain, out bool reversed)
Returns the details of a segment in a boundary curve in a curve region.
Parameters:
| regionIndex (int) | The curve region index. |
| boundaryIndex (int) | The boundary curve index. |
| segmmentIndex (int) | The segment index. |
| subDomain (out Interval) | The sub-domain of the planar curve used by the segment. |
| reversed (out bool) | true if the piece of the planar curve should be reversed. |
Returns: The index of the planar curve used by the specified segment if successful, -1 if not successful.