discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

A component abstraction with both positive and negative volume?

RW
Rob Ward
Wed, Feb 15, 2017 11:12 PM

Wow, really nice Pi project!!  Have you published the full project
anywhere??

Rob

On 15/02/17 23:26, nop head wrote:

Another DRY technique I use is my connector modules take a cutout
flag. When it is true instead of drawing the connector they define the
shape of the panel cutout needed for it to be panel mounted. I then
have a pcb_components module that either draws all the connectors in
the correct positions or produces all the cutouts that can be
subtracted from a panel or case. E.g.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Wow, really nice Pi project!! Have you published the full project anywhere?? Rob On 15/02/17 23:26, nop head wrote: > Another DRY technique I use is my connector modules take a cutout > flag. When it is true instead of drawing the connector they define the > shape of the panel cutout needed for it to be panel mounted. I then > have a pcb_components module that either draws all the connectors in > the correct positions or produces all the cutouts that can be > subtracted from a panel or case. E.g. > > > > ​ > > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
M
MichaelAtOz
Wed, Feb 15, 2017 11:53 PM

hedefalk wrote

About Z-fighting - I haven't really seen the it as a problem. When I turn
it into an STL for printing with Cura it seems to be gone anyways - rather
it just proves I'm doing stuff exact rather than having unnecessarily
large
negative volumes… Is there a problem I'm not considering?

It is a preview artifact, but...
When doing CSG and having two faces exactly coplanar can cause CGAL issues.
On their own they are not a problem, but say you added another object that
covered part of the hole coplanar with the top, then it doesn't know if that
face is there or not. Often getting a non-manifold error. Similar issues
unioning two objects with coplanar faces, sometimes OK, but bite you in the
arse when you're not expecting it.

Experience says extend your cuts and embed you joins.


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.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/A-component-abstraction-with-both-positive-and-negative-volume-tp20439p20460.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

hedefalk wrote > About Z-fighting - I haven't really seen the it as a problem. When I turn > it into an STL for printing with Cura it seems to be gone anyways - rather > it just proves I'm doing stuff exact rather than having unnecessarily > large > negative volumes… Is there a problem I'm not considering? It is a preview artifact, but... When doing CSG and having two faces exactly coplanar can cause CGAL issues. On their own they are not a problem, but say you added another object that covered part of the hole coplanar with the top, then it doesn't know if that face is there or not. Often getting a non-manifold error. Similar issues unioning two objects with coplanar faces, sometimes OK, but bite you in the arse when you're not expecting it. Experience says extend your cuts and embed you joins. ----- 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. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/A-component-abstraction-with-both-positive-and-negative-volume-tp20439p20460.html Sent from the OpenSCAD mailing list archive at Nabble.com.