OpenSCAD is an open source programming language and IDE (Integrated Development Environment) for parametric 3D design. It is used to create precise, customizable and easily modifiable designs ready for 3D printing. It has a growing developer community and is the tool used to create designs compatible with the MakerBot Customizer app: http://www.thingiverse.com/apps/customizer
You can download OpenSCAD from www.openscad.org/downloads.html
This group is a place to discuss all things OpenSCAD including (but not limited to) new features, techniques, questions, libraries, works in progress, etc. So post a new Topic or contribute on an existing one!
Share knowledge, get constructive feedback, and ask questions!
Join to add your OpenSCAD designs or libraries to this group's Things. Non-OpenSCAD designs will be removed.
Long time user of OpenSCAD here, which - as someone with a coder background - is my favorite tool for creating quick CAD-like objects.
However, I am also a very long time Blender user, which IMO is unparalleled in the FOSS world for many things, but specifically for 3D navigation and interacting with 3D geometry in general.
So, I’ve had an itch I wanted to scratch for a very long time: the power and quickness of OpenSCAD for modeling, married with the power and depth of Blender for 3D navigation (and many other things).
I’ve started experimenting with the idea, and while there is still a lot to do and a lot to figure out and optimize in terms of workflow, I have built something that has reached usability level.
If you guys want to take a look, here’s what that looks like:
https://www.youtube.com/watch?v=aZq8ZlmqHJo (watch in 2160p if you can)
There are a lot more that needs to be done to make it as (or even more) usable as the native OpenSCAD GUI, but I plan to get there in the coming month.
Would love feedback / ideas.
I'm aware there are workarounds to this problem, but I was wondering if it is possible to read/extract the name of a variable, not just its value?
echo(str("This variablei's name is ", extractName(X), ". value = ", X));
aboutVariable(box_height); // = "This variablei's name is box_height. value = 24"
Hay guys, I only just noticed these quirks to do with inputting arguments, and was curious to know what other people made of them, would you consider them bugs?
Within the parenthesis of a function, If you put a labeled variable in front of an unlabeled variable, (even if it is in sequence) this seems to foul up the operation.
The label might be redundant, but I don't see any need for it to break the code. see (Example 1)
I've only looked at the one shape but I notice with the cylinder that without labels the second vale is assumed to be "r1" rather than "r", which means there is no specified value for "r2" so it is given a default value of 1. see (Example 2)
I think this one probably does constitute a small error.
// Example 1
function add(a,b,c)= a+b+c;
echo("test 1 = ",add(a=4, b=4, c=4)); // = 12
echo("test 2 = ",add( 4, 4, 4)); // = 12
echo("test 3 = ",add(a=4, 4, 4)); // = undef
echo("test 4 = ",add( 4, b=4, 4)); // = undef
echo("test 5 = ",add( 4, b=4, c=4)); // = 12
echo("test 6 = ",add( 4, 4, c=4)); // = 12
// Example 2
cylinder(h=10, r=2); // fine
translate([6 ,0,0]) cylinder( 10, 2); // wtf?
translate([12,0,0]) cylinder( 10, r=2); // fine