solids / gcode.io

the source for gcode.io
http://gcode.io
11 stars 3 forks source link

overhang detection #9

Open tmpvar opened 10 years ago

tmpvar commented 10 years ago

Issues like this arise, and can be dangerous in a milling context. Ideally, overhangs would be ignored in this context. The issue is finding a performant way to test what is an overhang vs what is not.

Potential solution: raytrace from "suspect" verts up to the stock.max.z. Count the number of intersections, if > 0 this vert is contributing to an overhung feature.

Once we have collected all of the invalid verts, then we need to safely remove them from the clipping process.

Potential solutions:

screen shot 2014-03-05 at 12 20 54 pm

where the geometry looks like: screen shot 2014-03-05 at 12 41 18 pm

tmpvar commented 10 years ago

this refs tmpvar/mesh-slice-polygon#1