Does anyone know if there is a way in openScad to determine if intersection
of 2 objects is empty? I'd like to use the info to conditionally create a
support structure for a 3D print.
Thx,
--paul
--
View this message in context: http://forum.openscad.org/if-intersection-tp18700.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Not natively, as far as I can tell.
I did find a way to hack it together, though:
https://github.com/lhartmann/HCAD/blob/master/ifsolid.scad
This actually uses Minkowski to grow the result of the intersection huge,
unless there is no intersection and there is nothing to grow. This huge
solid is then intersected with the "true" solid result, and subtracted from
the "false" solid result, so only one of them remains.
Em 13 de out de 2016 22:18, "psnyder" paperbot13@gmail.com escreveu:
Does anyone know if there is a way in openScad to determine if intersection
of 2 objects is empty? I'd like to use the info to conditionally create a
support structure for a 3D print.
Thx,
--paul
--
View this message in context: http://forum.openscad.org/if-
intersection-tp18700.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
You could use projection()
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/3D_to_2D_Projection
of the intersection, then linear extrude your support. If the intersection
is empty there is nothing to extrude.
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/if-intersection-tp18700p18703.html
Sent from the OpenSCAD mailing list archive at Nabble.com.