105 lines
6.3 KiB
HTML
105 lines
6.3 KiB
HTML
<html><head><title>Import OpenSCAD code/ru</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Import OpenSCAD code/ru</h1></div>
|
|
|
|
<div id="mw-content-text" lang="ru" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" style="width: 230px; float: right; margin-left: 1em">
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id="Tutorial"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Tutorial</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Topic
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Import OpenSCAD code
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Level
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Beginner
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Time to complete
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">30 minutes
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Author
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">r-frank
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">FreeCAD version
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">0.16.6704
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Example File(s)
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">
|
|
</td></tr>
|
|
<tr>
|
|
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1"><a href="#Tutorial"><span class="tocnumber">1</span> <span class="toctext">Tutorial</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Introduction"><span class="tocnumber">2</span> <span class="toctext">Introduction</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#Installing_OpenSCAD"><span class="tocnumber">3</span> <span class="toctext">Installing OpenSCAD</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Configuring_OpenSCAD_workbench_in_FreeCAD"><span class="tocnumber">4</span> <span class="toctext">Configuring OpenSCAD workbench in FreeCAD</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#The_sample_model"><span class="tocnumber">5</span> <span class="toctext">The sample model</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Importing_the_model_in_FreeCAD"><span class="tocnumber">6</span> <span class="toctext">Importing the model in FreeCAD</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Introduction">Introduction</span></h2>
|
|
<p>OpenSCAD is a 3D CAD program using the same geometric core as FreeCAD (OCCT).<br />
|
|
But while FreeCAD uses a visual approach OpenSCAD uses a programming interface to perform 3D operations.<br />
|
|
The OpenSCAD workbench can be used to import OpenSCAD object code and to have access to some of the<br />
|
|
mesh operations possible with OpenSCAD.
|
|
</p>
|
|
<h2><span class="mw-headline" id="Installing_OpenSCAD">Installing OpenSCAD</span></h2>
|
|
<p>Mac Users could download the binaries from the <a rel="nofollow" class="external text" href="http://www.openscad.org/">OpenSCAD homepage</a>.<br />
|
|
Linux Ubuntu/Mint users can install from the system repositories or from the <a rel="nofollow" class="external text" href="http://www.openscad.org/">OpenSCAD homepage</a>.<br />
|
|
Windows users can download the program from the <a rel="nofollow" class="external text" href="http://www.openscad.org/">OpenSCAD homepage</a>.<br />
|
|
Since only the OpenSCAD executable is needed by FreeCAD windows users can install the portable version if they like.<br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Configuring_OpenSCAD_workbench_in_FreeCAD">Configuring OpenSCAD workbench in FreeCAD</span></h2>
|
|
<ul><li>Open FreeCAD</li>
|
|
<li>Switch to <a href="OpenSCAD_Module.html" title="OpenSCAD Module">OpenSCAD workbench</a></li>
|
|
<li>Choose Edit > Preferences > OpenSCAD from the Top menu
|
|
<ul><li>Point FreeCAD to the OpenSCAD executable (section: General OpenSCAD settings)</li>
|
|
<li>all the other values on the settings-page could be left at default</li></ul></li></ul>
|
|
<h2><span class="mw-headline" id="The_sample_model">The sample model</span></h2>
|
|
<p>Here we will use the example005.scad-file from the (old) OpenSCAD-examples, but feel free to use any scad-file of your liking.<br />
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:TutorialOpenSCAD_SampleFile.jpg" class="image"><img alt="TutorialOpenSCAD SampleFile.jpg" src="800px-TutorialOpenSCAD_SampleFile.jpg" width="800" height="450" srcset="/wiki/images/thumb/c/c0/TutorialOpenSCAD_SampleFile.jpg/1200px-TutorialOpenSCAD_SampleFile.jpg 1.5x, /wiki/images/thumb/c/c0/TutorialOpenSCAD_SampleFile.jpg/1600px-TutorialOpenSCAD_SampleFile.jpg 2x" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Importing_the_model_in_FreeCAD">Importing the model in FreeCAD</span></h2>
|
|
<ul><li>In FreeCAD just choose <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> File</span> → <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"> Open</span> and choose the .scad-File you want to import.</li>
|
|
<li>It is not important which workbench is activated, the OpenSCAD workbench itself is only needed when applying special features to your model</li>
|
|
<li>FreeCAD will import the OpenSCAD-File and build up a tree with primitives and boolean operations</li>
|
|
<li>Tutorial finished</li></ul>
|
|
<p><br />
|
|
<a href="https://www.freecadweb.org/wiki/index.php?title=File:TutorialOpenSCAD_ImportFile.jpg" class="image"><img alt="TutorialOpenSCAD ImportFile.jpg" src="800px-TutorialOpenSCAD_ImportFile.jpg" width="800" height="512" srcset="/wiki/images/thumb/d/dd/TutorialOpenSCAD_ImportFile.jpg/1200px-TutorialOpenSCAD_ImportFile.jpg 1.5x, /wiki/images/d/dd/TutorialOpenSCAD_ImportFile.jpg 2x" /></a>
|
|
</p><p><br />
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Import_OpenSCAD_code/ru&oldid=203273">http://www.freecadweb.org/wiki/index.php?title=Import_OpenSCAD_code/ru&oldid=203273</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |