Solved

Align to edge - Polygons

  • 24 February 2016
  • 5 replies
  • 19 views

Userlevel 5
Badge +30

hello all,

In my situation i have two polygos that aren`t both allignment :

My question is: has a transformer that use one polygon like refference to make the allign to edge another?

Thanks in Advance,

Danilo de Lima

icon

Best answer by mark2atsafe 25 February 2016, 17:58

View original

5 replies

Userlevel 1
Badge +21

Have you looked at the anchored snapper?

Userlevel 5
Badge +30

Have you looked at the anchored snapper?

@egomm Hi, thanks i will test with AnchoredSnapper.

Badge +7

@egomm Hi, thanks i will test with AnchoredSnapper.

The AnchoredSnapper that @egomm proposes works nicely if the vertices of both polygons are fairly close to each other.

The purple shape in your image looks as if it's an area that was drawn using arcs (1 point with a vector and curvature), which means that there might only be a few vertices that can be snapped. In that case you'd need to use an ArcStroker first on the purple polygon, which will get rid of the arcs and introduce more vertices.

Another option would be to use an AreaOnAreaOverlayer (and a Tester to remove the overlapping parts) in combination with a SliverRemover to get rid of the remaining holes.

Badge +3

Is it not simpler to just create a hull out of the pollygons (both together ).

Then cut this hull by the reference polygon.

Then clip the result by the (for instance) buffered edge of the target polygon.

And then lastly merge the target polygon with the clipped inside parts.

btw if you're gonna use snapping, then you might want to use it in segmentsnapping mode. ( sometimes you may need to use densifier for better result).

Userlevel 4
Badge +25

Try the SliverRemover. It will fill in the hole and assign the fill to either or both of the adjacent polygons - with various options as to which polygon it gets assigned to. It's a very good - and very little used - transformer.

Reply