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

145 lines
8.4 KiB
HTML

<html><head><title>Part Chamfer/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>Part Chamfer/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" >
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id=".D0.A4.D0.B0.D1.81.D0.BA.D0.B0"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Chamfer.png" class="image"><img alt="Part Chamfer.png" src="32px-Part_Chamfer.png" width="32" height="32" srcset="/wiki/images/thumb/8/87/Part_Chamfer.png/48px-Part_Chamfer.png 1.5x, /wiki/images/8/87/Part_Chamfer.png 2x" /></a> Фаска</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Расположение в меню
</th></tr>
<tr>
<td class="ctEven">Деталь → Фаска
</td></tr>
<tr>
<th class="ctOdd">Верстаки
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=Part_Module/ru" title="Part Module/ru">Part</a>, Complete
</td></tr>
<tr>
<th class="ctOdd">Быстрые клавиши
</th></tr>
<tr>
<td class="ctEven">отсутствуют
</td></tr>
<tr>
<th class="ctOdd">См. также
</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="#.D0.A4.D0.B0.D1.81.D0.BA.D0.B0"><span class="tocnumber">1</span> <span class="toctext">Фаска</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>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Description">Description</span></h2>
<p>Chamfers the selected edge(s) of an object. A dialog allows you to choose which edge(s) to work on as well as modify various chamfer parameters.
</p><p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Chamfer-example.png" class="image" title="Chamfer example"><img alt="Chamfer example" src="Chamfer-example.png" width="394" height="310" /></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:Part_Chamfer.svg" class="image"><img alt="Part Chamfer.svg" src="Part_Chamfer.svg" width="30" height="30" /></a></span> button from the <a href="Part_Workbench.html" class="mw-redirect" title="Part Workbench">Part Workbench</a>. Alternatively, you can select <b>Part → Chamfer</b>.</li>
<li> Select the shape to chamfer from the dialog.</li>
<li> Select edges to chamfer by checking the corresponding box in the chamfer dialog or by selecting them on the model directly. </li>
<li> Edit chamfer parameters.</li>
<li> Press OK to close the chamfer dialog and apply the chamfer.</li></ol>
<h2><span class="mw-headline" id="Options">Options</span></h2>
<p><a href="https://www.freecadweb.org/wiki/index.php?title=File:Dialog-chamfer.png" class="image" title="Dialog-chamfer"><img alt="Dialog-chamfer" src="Dialog-chamfer.png" width="460" height="336" /></a>
</p>
<ul><li> When selecting edges on the model, you have the option to select by edge or by face. Selecting by face will select all bordering edges of that face.</li>
<li> Constant length chamfer or variable length chamfer.
<ul><li> A constant length chamfer will create a chamfer with edges equidistant to the original edge at the distance specified.</li>
<li> A variable length chamfer will have edges that may be set to different distances from the original edge, allowing you to create a chamfer at a variable angle.</li></ul></li></ul>
<h2><span class="mw-headline" id="Properties">Properties</span></h2>
<div class="floatleft"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Part_Chamfer-Properties.png" class="image" title="Part_Chamfer Properties"><img alt="Part_Chamfer Properties" src="Part_Chamfer-Properties.png" width="479" height="229" /></a></div>
<p><br />
</p><p><span style="color: #ffffff; background-color: #a0a0a0; font-size: 132%; font-weight: bold; margin-bottom: .3em; page-break-after: avoid;">Base</span>
</p>
<ul><li><span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Base</b>: The shape onto which the chamfer is to be applied.</li>
<li><span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Placement</b>: Specifies the orientation and position of the shape in the 3D space. </li>
<li><span style="font-size: 0.6em;padding-right:10px;">DATA</span><b>Label</b>: Label given to the object. Change to suit your needs.</li></ul>
<div style="clear:both"></div>
<p><br />
</p>
<h2><span class="mw-headline" id="Scripting">Scripting</span></h2>
<p>The Chamfer tool can by used in <a href="Macros.html" title="Macros">macros</a> and from the python console by adding a Chamfer object to the document.
</p><p><b>Example Script:</b>
</p>
<pre>import Part
cube = FreeCAD.ActiveDocument.addObject("Part::Feature", "myCube")
cube.Shape = Part.makeBox(5, 5, 5)
chmfr = FreeCAD.ActiveDocument.addObject("Part::Chamfer", "myChamfer")
chmfr.Base = FreeCAD.ActiveDocument.myCube
myEdges = []
myEdges.append((1, 1.5, 1.25)) # (edge number, chamfer start length, chamfer end length)
myEdges.append((2, 1.5, 1.25))
myEdges.append((3, 1.5, 1.25))
myEdges.append((4, 1.5, 1.25))
myEdges.append((5, 1.5, 1.25))
myEdges.append((6, 1.5, 1.25))
myEdges.append((7, 1.5, 1.25))
myEdges.append((8, 1.5, 1.25))
myEdges.append((9, 1.5, 1.25))
myEdges.append((10, 1.5, 1.25))
myEdges.append((11, 1.5, 1.25))
myEdges.append((12, 1.5, 1.25))
chmfr.Edges = myEdges
FreeCADGui.ActiveDocument.myCube.Visibility = False </pre>
<p><b>Example Script Explanation:</b>
</p>
<pre>import Part
cube = FreeCAD.ActiveDocument.addObject("Part::Feature", "myCube")
cube.Shape = Part.makeBox(5, 5, 5) </pre>
<ul><li>Creates a 5 mm cube for us to apply chamfered edges to. See <a href="Part_API.html" title="Part API">Part_API</a> for an explanation of the makeBox method.</li></ul>
<pre>chmfr = FreeCAD.ActiveDocument.addObject("Part::Chamfer", "myChamfer") </pre>
<ul><li>Adds a new object to the document of type Chamfer (from the Part module) with label "myChamfer".</li></ul>
<pre>chmfr.Base = FreeCAD.ActiveDocument.myCube </pre>
<ul><li>Specifies that the base shape of the chamfer object should be "myCube".</li></ul>
<pre>myEdges = []
myEdges.append((1, 1.5, 1.25)) # (edge number, chamfer start length, chamfer end length)
myEdges.append((2, 1.5, 1.25))
myEdges.append((3, 1.5, 1.25))
myEdges.append((4, 1.5, 1.25))
myEdges.append((5, 1.5, 1.25))
myEdges.append((6, 1.5, 1.25))
myEdges.append((7, 1.5, 1.25))
myEdges.append((8, 1.5, 1.25))
myEdges.append((9, 1.5, 1.25))
myEdges.append((10, 1.5, 1.25))
myEdges.append((11, 1.5, 1.25))
myEdges.append((12, 1.5, 1.25)) </pre>
<ul><li>Creates an empty array "myEdges" and then appends the array with each edge's chamfer parameters.</li>
<li>Syntax for each item should be (edge#, chamfer start length, chamfer end length)</li></ul>
<pre>chmfr.Edges = myEdges </pre>
<ul><li>Sets the Edges attribute of our Chamfer object equal to the array we just created.</li></ul>
<pre>FreeCADGui.ActiveDocument.myCube.Visibility = False </pre>
<ul><li>This line simply hides "myCube" so that our newly created "myChamfer" object is the only one visible.</li></ul>
<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=Part_Chamfer/ru&amp;oldid=204078">http://www.freecadweb.org/wiki/index.php?title=Part_Chamfer/ru&amp;oldid=204078</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>