reiver-openscad/index.xhtml

63 lines
2.1 KiB
HTML
Raw Normal View History

2024-01-14 00:49:19 +00:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8" />
<title>OpenSCAD</title>
</head>
<body>
<main>
<article>
<h1>OpenSCAD</h1>
<address class="h-card">
by
<a rel="author" class="u-url" href="http://changelog.ca/"><span class="p-given-name">Charles</span> <span class="p-additional-name">Iliya</span> <span class="p-family-name">Krempeaux</span></a>
</address>
<p>
<strong>OpenSCAD</strong> is an open-source computer-aided design (<abbr title="computer-aided design">CAD</abbr>) software application.
</p>
<p>
2024-01-14 01:14:45 +00:00
Unlike many other <abbr title="computer-aided design">CAD</abbr> software applications which use a <abbr title="graphical user interface">GUI</abbr> to create, edit, and manipulate objects, <strong>OpenSCAD</strong> creates, edits, and manipulates objects via a scripting programming-language.
2024-01-14 00:49:19 +00:00
For example:
</p>
<figure>
<pre><code>
cube([2,3,4]);
2024-01-14 01:14:45 +00:00
</code></pre>
</figure>
<p>
<strong>OpenSCAD</strong> scripts are usually stored in <code>.scad</code> files.
</p>
<p>
<strong>OpenSCAD</strong> includes many features similar to many imperative programming-languages; including:
</p>
<ul>
<li>variables,</li>
<li>control structures (such as if-statements and loops),</li>
<li>modules, and</li>
<li>libraries.</li>
</ul>
<p>
For those already familiar with programming-languages such as C, C++, C#, D, Dart, Go, Java, JavaScript, PHP, and others — <strong>OpenSCAD</strong> uses curly-brackets.
For example:
</p>
<figure>
<pre><code>
for (a =[x1,x2,x3]){echo(a);}
2024-01-14 00:49:19 +00:00
</code></pre>
</figure>
<p>
<strong>OpenSCAD</strong> provides two main methods for 3D modeling:
</p>
<ul>
<li>creating complex object from combinations of simpler shapes, and</li>
<li>extruding 2D shapes (contained in .dxf or .svg files) into 3D shapes.</li>
</ul>
<p>
<strong>OpenSCAD</strong> is especially geared towards mechanical, rather than artistic, aspects of 3D computer-aided design.
Thus <strong>OpenSCAD</strong> can be useful when one wants to create a model that one wants to 3D-print.
</p>
</article>
</main>
</body>
</html>