Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikibooksThe Free Textbook Project
Search

OpenSCAD User Manual

75% developed
From Wikibooks, open books for an open world



OpenSCAD logo
OpenSCAD logo

Introduction

[edit |edit source]

OpenSCAD is software for creating solid 3D CAD objects.
It isfree software and available forGNU/Linux, Microsoft Windows and Mac OS X.

Unlike most free software for creating 3D models (such as the well-known applicationBlender), OpenSCAD does not focus on the artistic aspects of 3D modelling, but instead focuses on theCAD aspects. So it might be the application you are looking for when you are planning to create 3D models of machine parts, but probably is not what you are looking for when you are more interested in creating computer-animated movies or organic life-like models.

OpenSCAD, unlike many CAD products, is not an interactive modeler. Instead it is something like a 2D/3D-compiler that reads in a program file that describes the object and renders the model from this file. This gives you (the designer) full control over the modelling process. This enables you to easily change any step in the modelling process and make designs that are defined by configurable parameters.

OpenSCAD has two main operating modes,Preview andRender. Preview is relatively fast using3D graphics and thecomputer's GPU, but is an approximation of the model and can produceartifacts; Preview usesOpenCSG andOpenGL. Render generates exact geometry and a fullytessellatedmesh. It is not an approximation and as such it is often a lengthy process, taking minutes or hours for larger designs. Render usesCGAL as its geometry engine.

OpenSCAD provides two types of 3D modelling:

SVG is used for 2D while Autocad DXF files can be used as well for the data exchange format for 2D outlines. In addition to 2D paths for extrusion it is also possible to read design parameters from DXF files. Besides DXF files, OpenSCAD can read and create 3D models in the open 3mf, STL, OFF and many more file formats.

OpenSCAD can be downloaded fromhttps://www.openscad.org/. More information is available on themailing list.

Additional Resources

[edit |edit source]

An interactive web version of OpenSCAD can beused to play with an scad script, is accepting(design) contributions at git hub, and is based on theweb version of the application.

A clear guided introduction to using OpenSCAD and to the OpenSCAD language is available in theOpenSCAD Tutorial.


TheMastering OpenSCAD website has a nice tutorial on the basics and offers anumber of complex examples to learn from.

For Teachers: a basic 25-slide presentation from 2014 is available underGNUFDL to walk your students through the process of using OpenSCADhere.

Fablab Lannion (France) edited a nice French-languageinteractive tutorial that you might appreciate.

A "cheat sheet" is a useful quick reference for the OpenSCAD language, with each item linking back to this Wikibook.

A list of books can be foundhere.

History

[edit |edit source]

Periodically the two manuals below get cleaned up or have major transitions.Consider archiving the manuals prior to starting a major update.

This can be done for the two 'printable version' links below to theInternet Archive

The Wayback Machine no longer has a free user requested site archive, so below is just the two 'printable version' manuals

The OpenSCAD User Manual

[edit |edit source]
Aprintable version of OpenSCAD User Manual is available.OpenSCAD_User_Manual (edit it)
  1. Introduction
  2. First Steps
  3. The OpenSCAD User Interface
  4. Input Devices
  5. Customizer
  6. Import - STL, 3MF, OFF, AMF, DXF, SVG, CSG
    1. SVG Import
  7. Export - STL, 3MF, OFF, AMF, DXF, SVG, CSG, PNG
    1. STL Export
    2. CSG Export
    3. DXF Extrusion
    4. Other 2D formats
  8. Example Projects
    1. Strandbeest
  9. Paths
  10. Using an external Editor with OpenSCAD
  11. Integration with other applications
  12. Using OpenSCAD in a command line environment
  13. Building OpenSCAD from Sources
    1. Building on Linux/UNIX
    2. Cross-compiling for Windows on Linux or Mac OS X
    3. Building on Windows (Outdated)
    4. Building on Windows (New)
    5. Building on Mac OS X
    6. Submitting patches
  14. Frequently Asked Questions
  15. Libraries
  16. Tips and Tricks
  17. Command Glossary - Very short name and syntax reference

The OpenSCAD Language Reference

[edit |edit source]
Aprintable version of OpenSCAD User Manual is available.The_OpenSCAD_Language (edit it)
  1. The OpenSCAD Language
    1. General - READ THIS FIRST -comments,values and data types,variables,vectors,objects,getting input
  2. 3D objects -
    1. 3D Primitive Solids -cube,sphere,cylinder,polyhedron
    2. 3D to 2D Projection
  3. 2D Objects
    1. 2D Primitives -square,circle,polygon
    2. Text - Generate text using installed or user supplied font files; functions to retrieve text metrics.
    3. 2D to 3D -linear_extrude,rotate_extrude
  4. Transform
    1. color
    2. rotate,translate,mirror,multmatrix
    3. scale,resize
    4. offset,minkowski,hull
    5. Combining transformations
  5. Boolean combination
    1. union,difference,intersection,render
  6. Other Functions and Operators
    1. Conditional and Iterator Functions -for, intersection_for,if, conditional ? :, assign, let
    2. Mathematical Operators -General,Vectors,Matrix multiplication
    3. Mathematical Functions
      1. Trigonometric (cos sin tan acos asin atan atan2)
      2. Other (abs ceil concat cross exp floor ln len let log lookup max min norm pow rands round sign sqrt)
    4. String Functions -str,chr,ord
    5. Type Test Functions -is_undef,is_bool,is_num,is_string,is_list,is_object
    6. List Comprehensions
    7. Other Language Features -Special '$' variables,echo,render,surface,search ,version(), version_num(),parent_module(n) and $parent_modules,assert
  7. User-Defined Functions and Modules -Functions,Modules,Children
  8. Debugging aids -  % # ! *echo
  9. External libraries and code files
    1. include - SCAD, CSG
    2. use - SCAD
    3. import - STL, OFF, DXF
      1. import_dxf - Deprecated
      2. import_stl - Deprecated
    4. export - STL, OFF, AMF, 3MF, DXF, SVG, PNG, CSG
    5. surface - PNG

Work in progress

[edit |edit source]

This section contains documentation about ongoing work which is available as experimental features in snapshot versions of OpenSCAD or not yet integrated at all and pending in abranch orpull-request at theOpenSCAD github repository.

Retrieved from "https://en.wikibooks.org/w/index.php?title=OpenSCAD_User_Manual&oldid=4605688"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp