[OpenSCAD] if intersection ?

paperbot13@gmail.com paperbot13 at gmail.com
Sat Oct 15 03:51:45 EDT 2016


Thanks for your response.  Yes, i considered using a Minkowsky sum, but it's so computationally intense that I was motivated to try to a more parsimonious way.  This might make a useful enhancement that would probably be easy to implement.

----- Reply message -----
From: "Lucas Vinicius Hartmann" <lucas.hartmann at gmail.com>
To: "OpenSCAD general discussion" <discuss at lists.openscad.org>
Subject: [OpenSCAD] if intersection ?
Date: Thu, Oct 13, 2016 8:25 pm
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 at 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 at lists.openscad.org

http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20161015/09a5f624/attachment-0002.html>


More information about the Discuss mailing list