@unknownuser said:
test the edge's midpoint for being 'on the face' or on a face's edge if it is then it's NOT in a hole so we keep it [i.e. it's a perimeter edge or a line spanning from one edge to another across the face itself rather than across a hole], but if NOT then it's to be erased as it is spanning over a hole...
Yes, this code, no? if face.classify_point(edge.start.position.offset(edge.line[1, edge.length/2))==Sketchup::Face::PointOutside]
I'm working on the face thing now.. If I get that working there should be some serious testing, and then come back and fix things if needed.
And yeah! There are speed increases. I will time it later when doing som more complex geometry.
Thanks for this TIG.
If this will get OK, Hatchfaces would use this intersection as well. Am doing some JS, html tutorials at the same time as coding