Question

Connect lines and points to create polygon

  • 14 March 2016
  • 1 reply
  • 4 views

Hi, I am trying to create a polygon by connecting points and lines but without any satisfying result. Any ideas on how to solve this problem? See example below. The red line indicates what the resulting line should look like so it can be converted to a polygon.


1 reply

Badge +22

I would identify all the dangle nodes (using the topologyBuilder)

 

Then send them through a neighborFinder

 

Then use a VertexCreator to add the _closest_base coordinates to the node, which will create the missing lines.

 

 

You might want some logic to remove duplicate lines, but if all you're interested in is the polygon, then it's not strictly necessary.

Reply