This project is read-only.

Requirements for InputGeometry definition

Mar 2, 2015 at 5:11 PM

when creating an InputGeometry in Beta3, I get different results (or sometimes none at all) depending on the order of Points and Segments. In my use case, this can happen because some Points and Edges are defined by the user upfront, while others might be added in the background later depending on other factors. Also, the user is free to add Points and Edges in any order and/or "direction" (e.g. edge from node 3 to 4 or from node 4 to 3).

Since I could not find any requirements on the geometry definition in the doc, my question is what requirements there are. Do I have to sort the nodes and edges before adding them to the geometry so everything is in linear, ascending order? Does direction (CW/CCW) matter? Any other things I need to consider?

Also, are these requirements identical when I switch to Beta4?

Thanks for your help,
Mar 3, 2015 at 10:47 AM
You don't have to sort the points and orientation of the segments doesn't matter. Usually (I think in 99% of the cases reported here in the discussions), the input geometry is set up the wrong way. But I can't tell, until I see some code.

Also, have a look at
Mar 3, 2015 at 12:40 PM
Thank you... I was absolutely convinced that everything was correct but no - I'm also one of the 99%. I messed up the IDs of some vertices when subdividing one long edge into many small ones, but this was only visible when the order of the original start and end node were in the "wrong" order.

Everything works as expected now, thank you very much. Also, I switched to Beta 4, very nice work!