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

111 lines
14 KiB
HTML

<html><head><title>Draft BezCurve/pl</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 BezCurve/pl</h1></div>
<div id="mw-content-text" lang="pl" dir="ltr" class="mw-content-ltr"><hr/>
<div class="mw-parser-output"><div class="mw-translate-fuzzy">
<table class="fcinfobox wikitable ct" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Draft_BezCurve"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BezCurve.png" class="image"><img alt="Draft BezCurve.png" src="32px-Draft_BezCurve.png" width="32" height="32" srcset="/wiki/images/thumb/3/34/Draft_BezCurve.png/48px-Draft_BezCurve.png 1.5x, /wiki/images/3/34/Draft_BezCurve.png 2x" /></a> Draft BezCurve</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Lokalizacja menu
</th></tr>
<tr>
<td class="ctEven">Draft -&gt; BezCurve
</td></tr>
<tr>
<th class="ctOdd">Workbenches
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Draft_Module/pl" title="Draft Module/pl">Draft</a>, <a href="https://www.freecadweb.org/wiki/index.php?title=Arch_Module/pl" title="Arch Module/pl">Arch</a>
</td></tr>
<tr>
<th class="ctOdd">Domyślny skrót
</th></tr>
<tr>
<td class="ctEven">B Z
</td></tr>
<tr>
<th class="ctOdd">Zobacz także
</th></tr>
<tr>
<td class="ctEven">żaden
</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_BezCurve.html"><span class="tocnumber">1</span> <span class="toctext">Draft BezCurve</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="#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="#Scripting"><span class="tocnumber">6</span> <span class="toctext">Scripting</span></a></li>
<li class="toclevel-1 tocsection-6"><a href="#Contraining_Nodes"><span class="tocnumber">7</span> <span class="toctext">Contraining Nodes</span></a></li>
<li class="toclevel-1 tocsection-7"><a href="#Limitations"><span class="tocnumber">8</span> <span class="toctext">Limitations</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
</div>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>The BezCurve tool creates a <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Bezier_curve">Bezier Curve</a> (or a piecewise Bezier Curve) from several points in the current <a href="Draft_SelectPlane.html" title="Draft SelectPlane">work plane</a>. It takes the <a href="Draft_Linestyle.html" title="Draft Linestyle">linewidth and color</a> previously set on the Tasks tab.
</p><p>The object is created as a single Bezier Curve of degree (number_of_points - 1). This can be changed to a piecewise Bezier Curve of a specified degree after creation using the <a href="Property.html" title="Property">properties editor</a>. Bezier Curves can be edited using <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_Edit.png" class="image"><img alt="Draft Edit.png" src="16px-Draft_Edit.png" width="16" height="16" srcset="/wiki/images/thumb/5/51/Draft_Edit.png/24px-Draft_Edit.png 1.5x, /wiki/images/thumb/5/51/Draft_Edit.png/32px-Draft_Edit.png 2x" /></a> <a href="Draft_Edit.html" title="Draft Edit">Draft Edit</a></span>.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BezCurve_Example.png" class="image"><img alt="Draft BezCurve Example.png" src="400px-Draft_BezCurve_Example.png" width="400" height="214" srcset="/wiki/images/c/c2/Draft_BezCurve_Example.png 1.5x" /></a>
</p>
<h2><span class="mw-headline" id="How_to_use">How to use</span></h2>
<ol><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_BezCurve.png" class="image"><img alt="Draft BezCurve.png" src="16px-Draft_BezCurve.png" width="16" height="16" srcset="/wiki/images/thumb/3/34/Draft_BezCurve.png/24px-Draft_BezCurve.png 1.5x, 32px-Draft_BezCurve.png 2x" /></a> <a href="Draft_BezCurve.html" title="Draft BezCurve">Draft BezCurve</a></span> button, or press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">B</span> then <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Z</span> keys.</li>
<li> Click a first point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
<li> Click additional point on the 3D view, or type a <a href="Draft_Coordinates.html" title="Draft Coordinates">coordinate</a></li>
<li> Press <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">F</span> or <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">C</span>, or double-click the last point, or click on the first point to finish and close the curve.</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 BezCurve tool will restart after you finish or close it, allowing you to draw another one without pressing the BezCurve 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;">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 BezCurve command.</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 Bezier Curve is closed or not</li>
<li> <span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Degree</b>: Specifies the degree of the Bezier Curve (or segments)</li></ul>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The BezCurve 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>makeBezCurve(pointslist,[closed],[placement],[support],[degree]) </pre>
<ul><li> Create a Bezier Curve object from the given list of vectors. Instead of a pointslist, you can also pass a Part Wire.</li></ul>
<p>Example:
</p>
<pre>import FreeCAD,Draft
myFeature = Draft.makeBezCurve(Draft.makeBezCurve(points,False) </pre>
<h2><span class="mw-headline" id="Contraining_Nodes">Contraining Nodes</span></h2>
<p>The segment endpoints in a piecewise Bezier Curve can be constrained such that adjacent control points are tangent or symmetric to the segments at the endpoint. This is done after object creation using <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_Edit.png" class="image"><img alt="Draft Edit.png" src="16px-Draft_Edit.png" width="16" height="16" srcset="/wiki/images/thumb/5/51/Draft_Edit.png/24px-Draft_Edit.png 1.5x, /wiki/images/thumb/5/51/Draft_Edit.png/32px-Draft_Edit.png 2x" /></a> <a href="Draft_Edit.html" title="Draft Edit">Draft Edit</a></span>.
</p>
<ul><li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BezSharpNode.svg" class="image"><img alt="Draft BezSharpNode.svg" src="Draft_BezSharpNode.svg" width="32" height="32" /></a> <b>Sharp</b> - remove constraints</li>
<li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BezTanNode.svg" class="image"><img alt="Draft BezTanNode.svg" src="Draft_BezTanNode.svg" width="32" height="32" /></a> <b>Tangent</b> - force adjacent control points to be tangent</li>
<li> <a href="https://www.freecadweb.org/wiki/index.php?title=File:Draft_BezSymNode.svg" class="image"><img alt="Draft BezSymNode.svg" src="Draft_BezSymNode.svg" width="32" height="32" /></a> <b>Symmetric</b> - force adjacent control points to be tangent and equi-distant</li></ul>
<h2><span class="mw-headline" id="Limitations">Limitations</span></h2>
<ul><li> This tool is not available before FreeCAD version 0.14</li>
<li> The Points Property does not yet appear in the properties list.</li>
<li> OpenCascade does not support Bezier Curve with degree &gt; 25. This should not be a problem in practice. </li></ul>
<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_BezCurve/pl&amp;oldid=279589">http://www.freecadweb.org/wiki/index.php?title=Draft_BezCurve/pl&amp;oldid=279589</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>