osresearch / plotter-vision

Hidden Wireframe removal demo in p5.js
GNU General Public License v2.0
89 stars 17 forks source link

Coplanar detection fails on simple cubes #8

Closed osresearch closed 3 years ago

osresearch commented 3 years ago

image

rotate([30,-10,0])
translate([5,-5,0])
cube([10,10,10], center=true);

rotate([0,30,-10])
translate([5,0,0])
cube([10,10,10], center=true);
osresearch commented 3 years ago

image

Looks like eps in close_enough() might be too strict. Relaxing it to 0.001 results in a much better image.