-
Notifications
You must be signed in to change notification settings - Fork 53
basics
For more info about CoffeeScript, the language used in CoffeeSCad please see here
Follow the links to find out more about:
The assembly instance represent the root of your project's objects hierarchy: any object you want to see displayed/renderer/processed should either be added to the hierarchy directly , or added as a child of an object in the hierarchy
whenever you want to add an object to your assembly just type
assembly.add(myobject)
for example to draw a cube:
cube = new Cube({size:20})
assembly.add cube
each object is a sub-assembly in itself, so you can "add" sub elements to them like so : (this will display both the cube and the sphere)
cube = new Cube({size:20})
assembly.add cube
sphere = new Sphere()
cube.add(sphere)
Unlike the results of union boolean operation, each object in a hiearchy is a seperate entity (which, itself can be created using any of the transforms: union, substraction, translate etc)