[Smtk-developers] polygon progress

David Thompson david.thompson at kitware.com
Thu Sep 24 00:25:14 EDT 2015


Hi all,

FYI: model, vertex, and edge creation operations are done and tested in SMTK for polygonal models but not merged yet. (It is in my github account on a branch named polygon.) A screenshot of the test dataset is attached and shows how a few odd conditions are handled:

+ the 4 vertices forming a small square near the center of the screenshot are placed into the model as model vertices;
+ the lower left shows how a request for 1 edge with 4 input points then gets turned into 4 edges due to self-intersection and contact with a pre-existing model vertex. 3 additional model vertices are created.
+ the bottom right shows how a request for 1 periodic edge with 5 input points is turned into 2 model edges. The model vertex in the output is not an input point; it is where 2 segments intersect.
+ the top left square shows a model edge with 5 input points and no model vertices.

There are some caveats:

+ the code used to enforce CCW-ordering of edges incident to each vertex is not numerically robust; it uses floating-point math and does not detect overflows or integer truncation due to the approximation of sqrt.
+ no GUI is provided for inserting points

The remaining operations to implement are (in rough order of priority):

+ create all possible, non-existent faces from a set of edges.
+ split an edge
+ merge edges
+ create a face given outer (and optionally inner) loops
+ move vertices (note that this could be very painful to do robustly when edges are attached).
+ booleans via boost.polygon
+ voronoi diagrams via boost.polygon

	David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20150924/6133e456/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2015-09-24 at 12.07.43 AM.png
Type: image/png
Size: 12413 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/smtk-developers/attachments/20150924/6133e456/attachment.png>


More information about the Smtk-developers mailing list