Class MCIndexSegmentSetMutualIntersector
Intersects two sets of ISegmentStrings using a index based on MonotoneChains and a ISpatialIndex<T>.
Thread-safe and immutable.
Implements
Inherited Members
Namespace: NetTopologySuite.Noding
Assembly: NetTopologySuite.dll
Syntax
public class MCIndexSegmentSetMutualIntersector : ISegmentSetMutualIntersector
Constructors
| Improve this Doc View SourceMCIndexSegmentSetMutualIntersector(IEnumerable<ISegmentString>)
Constructs a new intersector for a given set of ISegmentStrings.
Declaration
public MCIndexSegmentSetMutualIntersector(IEnumerable<ISegmentString> baseSegStrings)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISegmentString> | baseSegStrings | The base segment strings to intersect |
Properties
| Improve this Doc View SourceIndex
Gets the index constructed over the base segment strings
Declaration
public ISpatialIndex<MonotoneChain> Index { get; }
Property Value
Type | Description |
---|---|
ISpatialIndex<MonotoneChain> |
Remarks
NOTE: To retain thread-safety, treat returned value as immutable
Methods
| Improve this Doc View SourceProcess(IEnumerable<ISegmentString>, ISegmentIntersector)
Calls ProcessIntersections(ISegmentString, Int32, ISegmentString, Int32) for all candidate intersections between the given collection of SegmentStrings and the set of indexed segments.
Declaration
public void Process(IEnumerable<ISegmentString> segStrings, ISegmentIntersector segInt)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISegmentString> | segStrings | A set of segments to intersect |
ISegmentIntersector | segInt | The |