{
if (! isCacheValid()) {
Geometry g0 = geomModel.getGeometry(0);
Geometry g1 = geomModel.getGeometry(1);
TopologyStretcher stretcher = new TopologyStretcher(g0, g1);
// check if view is valid (performant enough) to render
if (maskEnv != null) {
isViewPerformant = stretcher.numVerticesInMask(maskEnv) < MAX_VERTICES_IN_MASK;
}
if (! isViewPerformant)
return;
stretchGeom = stretcher.stretch(nearnessTol, stretchSize, maskEnv);
stretchCoords = stretcher.getModifiedCoordinates();
}
}