jlopezbi / rhinoUnfolder

unwrap meshes in rhino!
GNU General Public License v3.0
8 stars 2 forks source link

no detection of regions of co-planar faces #3

Open maxhawkins opened 11 years ago

maxhawkins commented 11 years ago

screen shot 2013-06-01 at 11 03 08 am

I tried running the algorithm on this truncated cone. It incorrectly assigned the cut edges

jlopezbi commented 11 years ago

thats odd. it layed-out very nicely. It looks as if there might be some really tiny curvature on the sides of that cone. Maybe some round-off errors. try zooming really close to one of the apparently incorrect red lines.

maxhawkins commented 11 years ago

For reference:

https://dl.dropboxusercontent.com/u/2315217/bad_cone.3dm

jlopezbi commented 11 years ago

yeah I replicated this with the same cone. So I think this comes from getting the full minimum spanning tree. If there are a bunch of co-planar faces they need to be treated as one single face.

jlopezbi commented 11 years ago

possible solutions: 1) During Layout: if two cut edges are really close to being the same, make it as one fold edge 2) before traversal: create sets of co-planar faces. and then...(?)