IsSimpleOp.withGeomAndRule constructor

IsSimpleOp.withGeomAndRule(
  1. Geometry inputGeom,
  2. BoundaryNodeRule boundaryNodeRule
)

Creates a simplicity checker using a given {@link BoundaryNodeRule}

@param geom the geometry to test @param boundaryNodeRule the rule to use.

Implementation

IsSimpleOp.withGeomAndRule(
    this.inputGeom, BoundaryNodeRule boundaryNodeRule) {
  isClosedEndpointsInInterior = !boundaryNodeRule.isInBoundary(2);
}