XOR-able objects
Description
Objects to 3D XOR with other objects to make checked/striped/spotted (even gingham - for picnics) items in two colours
Best utilised when we can get a two colour Candystruder (CandyFab acknowledged). Hey, what about milk and white chocolate...
And, of course, there's tartan for anyone who thought that I was only joking...
Best utilised when we can get a two colour Candystruder (CandyFab acknowledged). Hey, what about milk and white chocolate...
And, of course, there's tartan for anyone who thought that I was only joking...
Instructions
Take two STLs, one that you prepared earlier and one XOR stl.
Then use OpenSCAD to create a positive:
difference() {
import_stl("stlNumber1.stl",convexity=15);
import_stl("Check.stl",convexity=15);
}
and export STL.
Create support (or second colour)
intersection() {
import_stl("stlNumber1.stl",convexity=15);
import_stl("Check.stl",convexity=15);
}
and export STL.
Now place in a medium temperature twin 3D printer until golden brown.
Then use OpenSCAD to create a positive:
difference() {
import_stl("stlNumber1.stl",convexity=15);
import_stl("Check.stl",convexity=15);
}
and export STL.
Create support (or second colour)
intersection() {
import_stl("stlNumber1.stl",convexity=15);
import_stl("Check.stl",convexity=15);
}
and export STL.
Now place in a medium temperature twin 3D printer until golden brown.
You must be logged in to post a comment.
laird
on
February 15, 2012
said:
That's brilliant. So simple. When my Replicator arrives, I am going to be printing a lot of 2color stuff, completely gratuitously. And this trick is going to be how I do it. 2 color Bre! 2 color gangsta! 2 color Stephen Colert! All your fault!
Thanks! 8-)
Linkreincarnate
on
September 20, 2011
said:
How do you display multiple colors in openscad like that? My dual extrders are ordered already btw...
MakeALot
on
September 20, 2011
said:
Use the color() directive in front of the item. color([red,green,blue,alpha])
where each parameter is a number between 0 and 1.
So if you wanted a purpley-blue sphere radius 5mm that your drawing program shows as
red=51, green=11, blue=133 and you wanted it 75% semi-transparent, you could use:
color([51/255,11/255,133/255,0.75]) sphere(5);
License

hi,
when i enter your program, my stl file import in 3d but not your files*.
please can u help by sending tuto.
Sorry to distrubing you and thanks you
I assume that it's not importing because OpenSCAD is failing at that point. Have you tried running it on Ubuntu / MacOS? It works much better on these platforms than in windows.
I assume that it's not importing because OpenSCAD is failing at that point. Have you tried running it on Ubuntu / MacOS? It works much better on these platforms than in windows.