FreeCAD-Doc/localwiki/Placement_API-it.html
2018-07-19 18:47:02 -05:00

102 lines
4.6 KiB
HTML

<html><head><title>Placement API/it</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Placement API/it</h1></div>
<div id="mw-content-text" lang="it" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><p>In FreeCAD, Placement (Posizionamento) definisce la posizione e la rotazione di un oggetto. Il concetto di posizionamento è spiegato in dettaglio in: <a href="https://www.freecadweb.org/wiki/index.php?title=Placement/it" title="Placement/it">Placement</a>.
</p><p>Esempio di impostazione del Posizionamento di un oggetto del documento:
</p>
<pre>myObj = FreeCAD.ActiveDocument.ActiveObject
pl = FreeCAD.Placement()
pl.move(FreeCAD.Vector(2,0,0))
myObj.Placement = pl </pre>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Class.png" class="image"><img alt="Class.png" src="Class.png" width="16" height="16" /></a> <big><b>Placement</b></big> ( <i> ) o (Placement) o (Matrix) o (Base, Rotation) o (Base,Rotation,Center) o (Base,Axis,Angle</i> )</div>
<div class="description">
<p><small><b>Description</b>:</small> costruisce un Placement, vuoto o con gli argomenti dati, o come una copia di un Placement dato.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Property.png" class="image"><img alt="Property.png" src="Property.png" width="16" height="16" /></a> <big><b>Base</b></big></div>
<div class="description">
<p><small><b>Returns</b>:</small> un vettore che rappresenta la posizione di Placement.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Property.png" class="image"><img alt="Property.png" src="Property.png" width="16" height="16" /></a> <big><b>Rotation</b></big></div>
<div class="description">
<p><small><b>Returns</b>:</small> un quaternione che rappresenta la rotazione di Placement.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>inverse</b></big> ( <i> </i> )</div>
<div class="description">
<p><small><b>Description</b>:</small> calcola la posizione inversa
</p><p><small><b>Returns</b>:</small> un placement.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>move</b></big> ( <i>Vector</i> )</div>
<div class="description">
<p><small><b>Description</b>:</small> sposta il posizionamento lungo il vettore dato
</p><p><small><b>Returns</b>:</small> nulla
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>multVec</b></big> ( <i>Vector</i> )</div>
<div class="description">
<p><small><b>Description</b>:</small> applica il Placement al vettore data
</p><p><small><b>Returns</b>:</small> il vettore risultante.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>multiply</b></big> ( <i>Placement</i> )</div>
<div class="description">
<p><small><b>Description</b>:</small> moltiplica questo Placement con un'altra
</p><p><small><b>Returns</b>:</small> il placement risultante.
</p>
</div>
</div>
<p><br />
</p>
<div class="api">
<div class="function"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Method.png" class="image"><img alt="Method.png" src="Method.png" width="16" height="16" /></a> <big><b>toMatrix</b></big> ( <i> </i> )</div>
<div class="description">
<p><small><b>Description</b>:</small>
</p><p><small><b>Returns</b>:</small> una matrice che rappresenta la trasformazione del Placement.
</p>
</div>
</div>
<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=Placement_API/it&amp;oldid=137224">http://www.freecadweb.org/wiki/index.php?title=Placement_API/it&amp;oldid=137224</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>