108 lines
13 KiB
HTML
108 lines
13 KiB
HTML
<html><head><title>Draft BSpline/es</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 BSpline/es</h1></div>
|
|
|
|
<div id="mw-content-text" lang="es" 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="Draft_BSpline"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BSpline.png" class="image"><img alt="Draft BSpline.png" src="32px-Draft_BSpline.png" width="32" height="32" srcset="/wiki/images/thumb/a/af/Draft_BSpline.png/48px-Draft_BSpline.png 1.5x, /wiki/images/a/af/Draft_BSpline.png 2x" /></a> Draft BSpline</span></h3>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Ubicación en el Menú
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">Croquis → BSpline
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Entornos de trabajo
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/es" title="Draft Module/es">Croquis</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/es" title="Arch Module/es">Arquitectura</a>
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Atajo de teclado por defecto
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven">B S
|
|
</td></tr>
|
|
<tr>
|
|
<th class="ctOdd">Ver también
|
|
</th></tr>
|
|
<tr>
|
|
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Wire/es" title="Draft Wire/es">Contorno</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="#Draft_BSpline"><span class="tocnumber">1</span> <span class="toctext">Draft BSpline</span></a></li>
|
|
<li class="toclevel-1 tocsection-1"><a href="#Descripci.C3.B3n"><span class="tocnumber">2</span> <span class="toctext">Descripción</span></a></li>
|
|
<li class="toclevel-1 tocsection-2"><a href="#Utilizaci.C3.B3n"><span class="tocnumber">3</span> <span class="toctext">Utilización</span></a></li>
|
|
<li class="toclevel-1 tocsection-3"><a href="#Options"><span class="tocnumber">4</span> <span class="toctext">Options</span></a></li>
|
|
<li class="toclevel-1 tocsection-4"><a href="#Properties"><span class="tocnumber">5</span> <span class="toctext">Properties</span></a></li>
|
|
<li class="toclevel-1 tocsection-5"><a href="#Archivos_de_gui.C3.B3n"><span class="tocnumber">6</span> <span class="toctext">Archivos de guión</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
</td></tr></table>
|
|
<p><br />
|
|
</p>
|
|
<h2><span class="mw-headline" id="Descripci.C3.B3n">Descripción</span></h2>
|
|
<p>La herramienta BSpline crea una <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/B-spline">curva B-Spline</a> a partir de varios puntos en el <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_SelectPlane/es" title="Draft SelectPlane/es">plano de trabajo</a> actual. Toma el <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Linestyle/es" title="Draft Linestyle/es">espesor de línea y color</a> previamente establecidos en la pestaña de tareas. La herramienta BSpline se comporta exactamente como la herramienta <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Wire/es" title="Draft Wire/es">Contorno</a>.
|
|
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_bspline_example.jpg" class="image"><img alt="Draft bspline example.jpg" src="400px-Draft_bspline_example.jpg" width="400" height="238" srcset="/wiki/images/thumb/a/a0/Draft_bspline_example.jpg/600px-Draft_bspline_example.jpg 1.5x, /wiki/images/a/a0/Draft_bspline_example.jpg 2x" /></a>
|
|
</p>
|
|
<h2><span class="mw-headline" id="Utilizaci.C3.B3n">Utilización</span></h2>
|
|
<ol><li> Presiona el botón <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_BSpline.png" class="image"><img alt="Draft BSpline.png" src="16px-Draft_BSpline.png" width="16" height="16" srcset="/wiki/images/thumb/a/af/Draft_BSpline.png/24px-Draft_BSpline.png 1.5x, 32px-Draft_BSpline.png 2x" /></a> <a class="mw-selflink selflink">BSpline</a></span>, o presiona las teclas <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">B</span> y <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">S</span></li>
|
|
<li> Designa un primer punto en la vista 3D, o escribe unas <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Coordinates/es" title="Draft Coordinates/es">coordenadas</a></li>
|
|
<li> Designa un punto adicional en la vista 3D, o escribe unas <a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Coordinates/es" title="Draft Coordinates/es">coordenadas</a></li>
|
|
<li> Presiona <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">F</span> o <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span>, o haz doble clic en el último punto, o clic en el primer punto para terminar o cerrar la BSpline. Si la spline está cerrada, será también una cara, incluso aunque se muestre en estructura alámbrica.</li></ol>
|
|
<h2><span class="mw-headline" id="Options">Options</span></h2>
|
|
<ul><li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">F</span> or 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_FinishLine.png" class="image"><img alt="Draft FinishLine.png" src="12px-Draft_FinishLine.png" width="12" height="12" srcset="/wiki/images/thumb/c/c1/Draft_FinishLine.png/18px-Draft_FinishLine.png 1.5x, /wiki/images/thumb/c/c1/Draft_FinishLine.png/24px-Draft_FinishLine.png 2x" /></a> <b><a href="Draft_FinishLine.html" title="Draft FinishLine">Finish</a></b></span> button to finish the spline, leaving it open</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span> or 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_CloseLine.png" class="image"><img alt="Draft CloseLine.png" src="12px-Draft_CloseLine.png" width="12" height="12" srcset="/wiki/images/thumb/d/dc/Draft_CloseLine.png/18px-Draft_CloseLine.png 1.5x, /wiki/images/thumb/d/dc/Draft_CloseLine.png/24px-Draft_CloseLine.png 2x" /></a> <b><a href="Draft_CloseLine.html" title="Draft CloseLine">Close</a></b></span> button or click on the first point to finish the spline, but making it closed by adding a last segment between the last point and the first one.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">X</span>, <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Y</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> after a point to constrain the next point on the given axis.</li>
|
|
<li> To enter coordinates manually, simply enter the numbers, then press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ENTER</span> between each X, Y and Z component.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">R</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Relative</b></span> button. If relative mode is on, the coordinates of the next point are relative to the last one. If not, they are absolute, taken from the (0,0,0) origin point.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">T</span> or click the checkbox to check/uncheck the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Continue</b></span> button. If continue mode is on, the BSpline tool will restart after you finish or close it, allowing you to draw another one without pressing the BSpline button again.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span> while drawing to force <a href="Draft_Snap.html" title="Draft Snap">snapping</a> your point to the nearest snap location, independently of the distance.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">SHIFT</span> while drawing to <a href="Draft_Constrain.html" title="Draft Constrain">constrain</a> your next point horizontally or vertically in relation to the last one.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">W</span> or 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_Wipe.png" class="image"><img alt="Draft Wipe.png" src="12px-Draft_Wipe.png" width="12" height="12" srcset="/wiki/images/thumb/8/86/Draft_Wipe.png/18px-Draft_Wipe.png 1.5x, /wiki/images/thumb/8/86/Draft_Wipe.png/24px-Draft_Wipe.png 2x" /></a> <b>Wipe</b></span> button to remove the existing segments and start the spline from the last point.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">CTRL</span>+<span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> or 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_UndoLine.png" class="image"><img alt="Draft UndoLine.png" src="12px-Draft_UndoLine.png" width="12" height="12" srcset="/wiki/images/thumb/d/dd/Draft_UndoLine.png/18px-Draft_UndoLine.png 1.5x, /wiki/images/thumb/d/dd/Draft_UndoLine.png/24px-Draft_UndoLine.png 2x" /></a> <b><a href="Draft_UndoLine.html" title="Draft UndoLine">Undo</a></b></span> button to undo the last point.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">I</span> or the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Filled</b></span> button to have the spline filled with a face after it has been closed.</li>
|
|
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">ESC</span> or the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><b>Cancel</b></span> button to abort the current BSpline command.</li>
|
|
<li> BSplines, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property below.</li></ul>
|
|
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
|
|
<ul><li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Closed</b>: Specifies if the spline is closed or not</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Make Face</b>: Fills the spline with a face</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>End Arrow</b>: Shows an arrow symbol at the last point of the spline, so it can be used as an annotation leader line</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Pattern</b>: Specifies a hatch pattern to fill the wire with</li>
|
|
<li> <span style="font-size: 0.6em;padding-right:10px;">VIEW</span><b>Pattern Size</b>: Specifies the size of the hatch pattern</li></ul>
|
|
<h2><span class="mw-headline" id="Archivos_de_gui.C3.B3n">Archivos de guión</span></h2>
|
|
<p>La herramienta BSpline puede utilizarse en <a href="https://www.freecadweb.org/wiki/index.php?title=Macros/es" title="Macros/es">macros</a> y desde la consola de Python utilizando la siguiente función:
|
|
</p>
|
|
<pre>makeBSpline (pointslist,[closed],[placement]) </pre>
|
|
<ul><li> Crea un objeto B-Spline a partir de la lista de vectores dada. </li>
|
|
<li> Si closed es True o si el primer y último punto son idénticos, el contorno es cerrado. </li>
|
|
<li> Si face es true (y la BSpline está cerrada), la BSpline se mostrará rellena. </li>
|
|
<li> En lugar de una lista de puntos, también puedes pasar un contorno de pieza.</li>
|
|
<li> Devuelve el objeto recién creado.</li></ul>
|
|
<p>Ejemplo:
|
|
</p>
|
|
<pre>import FreeCAD,Draft
|
|
p1 = FreeCAD.Vector(0,0,0)
|
|
p2 = FreeCAD.Vector(1,1,0)
|
|
p3 = FreeCAD.Vector(2,0,0)
|
|
Draft.makeBSpline([p1,p2,p3],closed=True) </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_BSpline/es&oldid=204657">http://www.freecadweb.org/wiki/index.php?title=Draft_BSpline/es&oldid=204657</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> |