Skip to main content
Question

Connect lines and points to create polygon

  • March 14, 2016
  • 1 reply
  • 30 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

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • March 14, 2016

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings