discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] if intersection ?

P
paperbot13@gmail.com
Sat, Oct 15, 2016 7:51 AM

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@gmail.com
To: "OpenSCAD general discussion" discuss@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@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

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@gmail.com> To: "OpenSCAD general discussion" <discuss@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@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