/// <summary> /// Creates a new instance of a quad-edge subdivision based on a frame triangle /// that encloses a supplied bounding box. A new super-bounding box that /// contains the triangle is computed and stored. /// </summary> /// <param name="env">the bounding box to surround</param> /// <param name="tolerance">the tolerance value for determining if two sites are equal</param> public QuadEdgeSubdivision(Envelope env, double tolerance) { // currentSubdiv = this; _tolerance = tolerance; _edgeCoincidenceTolerance = tolerance / EdgeCoincidenceToleranceFactor; CreateFrame(env); _startingEdge = InitSubdiv(); _locator = new LastFoundQuadEdgeLocator(this); }
/// <summary> /// Creates a new instance of a quad-edge subdivision based on a frame triangle /// that encloses a supplied bounding box. A new super-bounding box that /// contains the triangle is computed and stored. /// </summary> /// <param name="env">the bouding box to surround</param> /// <param name="tolerance">the tolerance value for determining if two sites are equal</param> public QuadEdgeSubdivision(Envelope env, double tolerance) { // currentSubdiv = this; _tolerance = tolerance; _edgeCoincidenceTolerance = tolerance / EdgeCoincidenceToleranceFactor; CreateFrame(env); _startingEdge = InitSubdiv(); _locator = new LastFoundQuadEdgeLocator(this); }
/// <summary> /// Sets the <see cref="IQuadEdgeLocator"/> to use for locating containing triangles /// in this subdivision. /// </summary> /// <param name="locator">a QuadEdgeLocator</param> public void SetLocator(IQuadEdgeLocator locator) { _locator = locator; }
/// <summary> /// Sets the <see cref="IQuadEdgeLocator"/> to use for locating containing triangles /// in this subdivision. /// </summary> /// <param name="locator">a QuadEdgeLocator</param> public void SetLocator(IQuadEdgeLocator locator) { _locator = locator; }