I think the short answer is you can't, you would need to leave a small gap.
If you don't you are describing a single shape.
There is no concept of materials in OpenScad. It just describes solid
shapes.
--
View this message in context: http://forum.openscad.org/How-to-disable-merging-touched-objects-tp11255p11260.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
The two boxes should touch each other and the new points should be
calculated. Can anyone recommend CAD software that allows me to keep the
contact face? Thanks.
--
View this message in context: http://forum.openscad.org/How-to-disable-merging-touched-objects-tp11255p11276.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
What do you mean exactly by new points and contact face?
You can calculate pretty much any shape with OpenScad but you would have to
render one piece at a time and export them separately if you want them to be
separate objects that touch each other or intersect each other. There is no
physical reality to objects that intersect or share a common boundary.
You could calculate the rectangle where the cubes touch by overlapping them
slightly and doing the intersection and then projecting that to 2D. The
contact face isn't a 3D solid because it has no thickness. OpenScad can only
represent 3D solids or 2D shapes, not a 2D square floating in 3D space. That
is why you would need to overlap to get a valid 3D intersection with an
arbitrary thickness that you can then flatten to 2D.
--
View this message in context: http://forum.openscad.org/How-to-disable-merging-touched-objects-tp11255p11277.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
This has been discussed earlier and it’s on the roadmap.
Some related resources:
o https://github.com/openscad/openscad/wiki/Multi-material-support
o https://github.com/openscad/openscad/issues/350
o https://github.com/openscad/openscad/issues/1041
o https://github.com/openscad/openscad/issues/1044
The way to do it today is to enable/disable features and export multiple times, e.g. using a script.
I did a 5-color test object this way, see:
https://github.com/kintel/OpenSCAD-models/blob/master/horn.scad
https://github.com/kintel/OpenSCAD-models/blob/master/horn.sh
-Marius