90 lines
5.8 KiB
HTML
90 lines
5.8 KiB
HTML
<html><head><title>Draft Mirror/en</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Draft Mirror/en</h1></div>
|
|
|
|
<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" >
|
|
<tr>
|
|
<td class="ctTitle">
|
|
<h3><span class="mw-headline" id=".7B.7B.7BName.2Fen.7D.7D.7D"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Mirror.png" class="image"><img alt="Draft Mirror.png" src="32px-Draft_Mirror.png" width="32" height="32" srcset="/wiki/images/thumb/3/3f/Draft_Mirror.png/48px-Draft_Mirror.png 1.5x, /wiki/images/3/3f/Draft_Mirror.png 2x" /></a> {{{Name/en}}}</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Menu location
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Draft → Mirror
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Workbenches
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Draft_Module.html" title="Draft Module">Draft</a>, <a href="Arch_Module.html" title="Arch Module">Arch</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Default shortcut
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">None
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">See also
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="Draft_Scale.html" title="Draft Scale">Draft Scale</a>
|
|
</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="#.7B.7B.7BName.2Fen.7D.7D.7D"><span class="tocnumber">1</span> <span class="toctext">{{{Name/en}}}</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Description"><span class="tocnumber">2</span> <span class="toctext">Description</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#How_to_use"><span class="tocnumber">3</span> <span class="toctext">How to use</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Properties"><span class="tocnumber">4</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Options"><span class="tocnumber">5</span> <span class="toctext">Options</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Description">Description</span></h2>
|
|
<p>This tool produces a mirrored copy of a selected object, using a <a href="Part_Mirror.html" title="Part Mirror">Part Mirror</a> object. The copy is parametrically bound to the original object: If the original object changes, the mirrored copy changes too, but keeps mirrored.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Mirror_example.jpg" class="image"><img alt="Draft Mirror example.jpg" src="400px-Draft_Mirror_example.jpg" width="400" height="347" srcset="/wiki/images/thumb/c/c8/Draft_Mirror_example.jpg/600px-Draft_Mirror_example.jpg 1.5x, /wiki/images/c/c8/Draft_Mirror_example.jpg 2x" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
|
|
<ol><li> Select objects you wish to mirror</li>
|
|
<li> Press the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_Mirror.png" class="image"><img alt="Draft Mirror.png" src="16px-Draft_Mirror.png" width="16" height="16" srcset="/wiki/images/thumb/3/3f/Draft_Mirror.png/24px-Draft_Mirror.png 1.5x, 32px-Draft_Mirror.png 2x" /></a> <a href="Draft_Mirror.html" title="Draft Mirror">Draft Mirror</a></span> button</li>
|
|
<li> Click the first point of the mirror line on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
|
|
<li> Click the other point of the mirror line on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li></ol>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Base</b>: The base point of the mirror plane</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Normal</b>: The normal direction of the mirror plane</li></ul>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<ul><li> After the creation of the mirror, its binding with the original object can be removed using the <a href="Part_CreateSimpleCopy.html" title="Part CreateSimpleCopy">Part Create Simple Copy</a> tool.</li>
|
|
<li> The mirror of a Draft object can also be turned into a Draft Wire, using <a href="Draft_Downgrade.html" title="Draft Downgrade">Draft Downgrade</a> then <a href="Draft_Upgrade.html" title="Draft Upgrade">Draft Upgrade</a>.</li></ul>
|
|
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
|
|
<p>The Clone tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by using the following function:
|
|
</p>
|
|
<pre>mirror (objectslist,p1,p2) </pre>
|
|
<ul><li> Makes mirror(s) of the given object(s) across a plane defined by a line from p1 to p2, and parallel to the current view</li>
|
|
<li> The result is a <a href="Part_Mirror.html" title="Part Mirror">Part Mirror</a> object</li>
|
|
<li> If the original object changes, the final object changes too but keeps mirrored</li></ul>
|
|
<p>Example:
|
|
</p>
|
|
<pre>import Draft,FeeCAD
|
|
p1 = FreeCAD.Vector(0,0,0)
|
|
p2 = FreeCAD.Vector(2,2,0)
|
|
Draft.mirror(FreeCAD.ActiveDocument.ActiveObject,p1,p2) </pre>
|
|
<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=Draft_Mirror/en&oldid=213984">http://www.freecadweb.org/wiki/index.php?title=Draft_Mirror/en&oldid=213984</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> |