Part RegularPolygon/ru: Difference between revisions
(Created page with "{{GuiCommand/ru |Name=Part RegularPolygon |Name/ru=Правильный прямоугольник |MenuLocation=Деталь → Part_CreatePrimitives|Создать при...") |
(Updating to match new version of source page) |
||
(39 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{Docnav/ru |
|||
|[[Part_Line/ru|Линия]] |
|||
|[[Part_Builder/ru|Построитель]] |
|||
|[[Part_Workbench/ru|Верстак Part]] |
|||
|IconL=Part_Line.svg |
|||
|IconR=Part_Builder.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name= |
|Name=Part_RegularPolygon |
||
|Name/ru=Правильный |
|Name/ru=Правильный Многоугольник |
||
|MenuLocation=Деталь → [[Part_CreatePrimitives|Создать примитивы...]] → Правильный |
|MenuLocation=Деталь → [[Part_CreatePrimitives|Создать примитивы...]] → Правильный Многоугольник |
||
|Workbenches=[[ |
|Workbenches=[[Part_Workbench/ru|Верстак Part]] |
||
| |
|Version=0.14 |
||
|SeeAlso=[[Part_Primitives/ru|Примитивы]] |
|||
}} |
}} |
||
</div> |
|||
= |
<span id="Description"></span> |
||
==Описание== |
|||
A RegularPolygon geometric primitive is available from the Create Primitives dialogue in the Part workbench. |
|||
<div class="mw-translate-fuzzy"> |
|||
The Create Primitives dialogue can be accessed via the [[Part_CreatePrimitives|CreatePrimitives]] icon [[Image:Part_CreatePrimitives.png|32px]] located in the Part menu or the Part toolbar, in the Part Workbench. |
|||
Создаёт примитив в форме Правильного Многоугольника |
|||
</div> |
|||
[[Image:Part_RegularPolygon_Example.png|400px]] |
|||
<span id="Usage"></span> |
|||
== Parameters == |
|||
==Применение== |
|||
*Polygon - the number of sides of the polygon which describes the cross section of the Part Prism |
|||
*cirumradius - the circumradius is the distance from the centre of the polygon to a vertex. |
|||
See [[Part_Primitives#Usage|Part Primitives]]. |
|||
{{Version|0.14}} |
|||
== Example == |
|||
{{clear}} |
|||
⚫ | |||
[[Image:Part_RegularPolygon_Scripting_Example.png|thumb|Part RegularPolygon from the scripting example]] |
|||
A Part RegularPolygon object created with the [[#Scripting|scripting example]] below is shown here. |
|||
== Properties == |
|||
See also: [[Property_editor|Property editor]]. |
|||
A Part RegularPolygon object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties: |
|||
=== Data === |
|||
{{TitleProperty|Attachment}} |
|||
The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]]. |
|||
{{TitleProperty|Regular Polygon}} |
|||
* {{PropertyData|Polygon|IntegerConstraint}}: The number of sides of the polygon. The default is {{Value|6}}. |
|||
* {{PropertyData|Circumradius|Length}}: The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is {{Value|2mm}}. |
|||
== Scripting == |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
A Part RegularPolygon can be created with the {{Incode|addObject()}} method of the document: |
|||
{{Code|code= |
|||
poly = FreeCAD.ActiveDocument.addObject("Part::RegularPolygon", "myPolygon") |
|||
}} |
|||
* Where {{Incode|"myPolygon"}} is the name for the object. |
|||
* The function returns the newly created object. |
|||
Example: |
|||
{{Code|code= |
|||
import FreeCAD as App |
|||
doc = App.activeDocument() |
|||
poly = doc.addObject("Part::RegularPolygon", "myPolygon") |
|||
poly.Polygon = 5 |
|||
poly.Circumradius = 8 |
|||
poly.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 30, 15)) |
|||
doc.recompute() |
|||
}} |
|||
{{Docnav/ru |
|||
|[[Part_Line/ru|Линия]] |
|||
|[[Part_Builder/ru|Построитель]] |
|||
|[[Part_Workbench/ru|Верстак Part]] |
|||
|IconL=Part_Line.svg |
|||
|IconR=Part_Builder.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
{{Part_Tools_navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 12:17, 26 June 2023
Правильный Многоугольник |
Системное название |
---|
Part_RegularPolygon |
Расположение в меню |
Деталь → Создать примитивы... → Правильный Многоугольник |
Верстаки |
Верстак Part |
Быстрые клавиши |
Нет |
Представлено в версии |
0.14 |
См. также |
Примитивы |
Описание
Создаёт примитив в форме Правильного Многоугольника
Применение
See Part Primitives.
Example
A Part RegularPolygon object created with the scripting example below is shown here.
Properties
See also: Property editor.
A Part RegularPolygon object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Data
Attachment
The object has the same attachment properties as a Part Part2DObject.
Regular Polygon
- ДанныеPolygon (
IntegerConstraint
): The number of sides of the polygon. The default is6
. - ДанныеCircumradius (
Length
): The radius of the circle that circumscribes the polygon, the distance from the center of the polygon to one of its vertices. The default is2mm
.
Scripting
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part RegularPolygon can be created with the addObject()
method of the document:
poly = FreeCAD.ActiveDocument.addObject("Part::RegularPolygon", "myPolygon")
- Where
"myPolygon"
is the name for the object. - The function returns the newly created object.
Example:
import FreeCAD as App
doc = App.activeDocument()
poly = doc.addObject("Part::RegularPolygon", "myPolygon")
poly.Polygon = 5
poly.Circumradius = 8
poly.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 30, 15))
doc.recompute()
Part
- Примитивы: Куб(Параллелограмм), Конус, Цилиндр, Сфера, Тор, Полый цилиндр,Примитивы, Связующие формы
- Создание и правка: Выдавливание, Построение фигуры вращения, Отражение, Скругление, Фаска, Создать плоскость из граней, Ruled Surface, Профиль, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Создать полый объект, Projection on surface, Прикрепление
- Булевы операции: Соединить, Разорвать связь, Compound Filter, Булевы операции, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Измерительные: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
Документация пользователя
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework