This is the list of 3D objects of OpenSCAD: The operator rotate rotates each of the cylinder. After the operation is completed, the inner surface of the cylinder gets gray color.Īt the and, three operators create cylinders. Axes of the coordinate system can be turned on or off by using the hotkey Ctrl+2 or use the main menu of the program View -> Show Axes.Īnother operator color() determines the color of the big cylinder (cylinder(150,30,30, center = true ) ). The next operator sphere(40, center = true) (the line 5) creates a sphere with radius of 40, the sphere's center matches the center of coordinate system ( center = true). To change color of several objects, it takes to enclose them into curly brackets (just like in C++ programming language). This operator affects the next to "color" object.Įxample: color("blue") sphere(20, center = true, $fn = 300) )
Instead of numbers, colors can be defined by names. It also can use the fourth parameter, it determines transparency. The operator color() changes the color (RGB) of an object in decimal units, the range is from 0.0 to 1.0. Thus, the program OpenSCAD allows to provide three logical (Boolean) operations over 3D objects: All those operators are working with multiple figures, so all the figures must be enclosed inside curly brackets. By the way, there are two other logical operators - union() and intersection(). Cylinders are subtracting from the sphere. The next line with a logical operator difference(), it subtracts the first figure or figures (cylinders - lines 7.10) from the second one (the sphere - line 5). With higher value of $fn parameter the program produces more polygons, therefore the surface will looks much smoother, but it takes more time to compile a model. The parameter $fn can be set separately for every object, as it shown in this example: For example, if set $fn = 10, the model will look very edgy, just like this: A system variable $fn determines number of polygons of the model, that means it determines graphic resolution (quality) of rendering.
Here is an example how to create a sphere with holes: A model describes with a simple scripting language. The program OpenSCAD allows to create solid 3D models. CSG it takes only to compile the model (hit F5 key).Īn example of exporting of 3D model into a graphic PNG file is shown on the picture below: DXF formats a model must be compiled and visualized before exporting by pressing F6. CSG formats, and export into image format. The program OpenSCAD allows to export 3D models into. Use menu "View" to select a point of view and move model to the screen center. Use mouse to rotate the model (hold left mouse button pressed) or move it (hold right mouse button). It shows the progress indicator if compiling and visualization are in progress.Īfter the file is open, it can be compiled. The status bar is located at the very bottom of the window. The main window of OpenSCAD program consists of three fields: the text editor field at left, the graphic field at top right, and the console output area at the bottom right that shows messages.
stl file is to use drag and drop method - just drag a file from Windows Explorer and drop in on the OpenSCAD program. stl files in the current directory, select a file and open it. Enter file mask *.stl in the Open File dialog as it shown in the screenshot below:
stl file using this program? Select File -> Open from the main menu, or press CTRL+O hotkeys.
stl file format is free OpenSCAD (Solid 3D CAD Modeller), it can be downloaded from this site: (there are Windows/Mac OS X/Linux/BSD versions). stl files can be edited with a text editor. stl extension are stored 3D model of objects, they can be "printed" using 3D printer. stl file and the program OpenSCADĪbbreviation STL stand for STereo Lithography (Stereolithography is a technology for 3D printed objects creation).