Part Torus/ru: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 20: | Line 20: | ||
== Описание == |
== Описание == |
||
<div class="mw-translate-fuzzy"> |
|||
Создаёт простой параметрический тор с следующими параметрами: положение (position), угол1 (angle1), угол2 (angle2), угол3 (angle3), радиус1 (radius1) и радиус2 (radius2). |
Создаёт простой параметрический тор с следующими параметрами: положение (position), угол1 (angle1), угол2 (angle2), угол3 (angle3), радиус1 (radius1) и радиус2 (radius2). |
||
</div> |
|||
A Part Torus can be turned into a segment of a torus by changing its {{PropertyData|Angle3}} property. By changing its {{PropertyData|Angle1}} and/or {{PropertyData|Angle2}} properties the swept profile can become a segment of a circle. |
|||
[[File:SimpleTorus.jpg|400px]] |
|||
[[Image:Part_Torus_Example.png|400px]] |
|||
<div class="mw-translate-fuzzy"> |
|||
==Применение== |
==Применение== |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
Line 33: | Line 39: | ||
</div> |
</div> |
||
== Example == |
|||
[[Image:Part_Torus_Scripting_Example.png|thumb|Part Torus from the scripting example]] |
|||
'''Результат:''' Будет создан Тор расположенный в начале системы координат (точка 0,0,0).<br /> |
|||
Параметры угла (угол1, угол2, угол3) и параметры радиуса (радиус 1 , радиус 2) позволяют параметризовать (изменять) тор, о чём будет рассказано в следующем разделе. |
|||
A Part Torus object created with the [[#Scripting|scripting example]] below is shown here. |
|||
== Опции == |
|||
== Notes == |
|||
[[File:TorusExampleOverviewParameters.jpg]] |
|||
* A Part Torus can also be created with the [[Image:Part_Primitives.svg|16px]] [[Part_Primitives|Part Primitives]] command. With that command you can specify the dimensions and placement at creation time. |
|||
'''Параметр''' |
|||
<div class="mw-translate-fuzzy"> |
|||
Тор можно сравнить с небольшим диском, который вращается по круговой орбите вокруг воображаемой оси. Таким образом, наш тор имеет следующие параметры: |
|||
⚫ | |||
⚫ | |||
</div> |
|||
See also: [[Property_editor|Property editor]]. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
A Part Torus object is derived from a [[Part_Feature|Part Feature]] object and inherits all its properties. It also has the following additional properties: |
|||
а также стандартный набор параметров размещения.</br>На рисунках ниже представлен визуальный обзор вышеупомянутых параметров: |
|||
=== Data === |
|||
⚫ | |||
⚫ | |||
{{TitleProperty|Attachment}} |
|||
[[File:TorusExampleRadius2.jpg]] |
|||
Параметр Радиус2 (Radius2) имеет значение 2мм. |
|||
The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]]. |
|||
[[File:TorusExampleAngle1.jpg]] |
|||
Здесь параметр Угол1 (Angle1) имеет значение -90°. Обратите внимание, что инструмент "измерение угла" не может отобразить отрицательный угол. Так что считаем, что отображаемое значение на картинке равно "-90°". |
|||
{{TitleProperty|Torus}} |
|||
[[File:TorusExampleAngle2.jpg]] |
|||
Параметр Угол2 (Angle2) равен 90°. |
|||
<div class="mw-translate-fuzzy"> |
|||
[[File:TorusExampleAngle3.jpg]] |
|||
⚫ | |||
Параметр Угол3 (Angle3) имеет значение 90°. |
|||
⚫ | |||
{{clear}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
|||
== Scripting == |
== Scripting == |
||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
⚫ | |||
⚫ | |||
{{Code|code= |
{{Code|code= |
||
Line 79: | Line 86: | ||
* Where {{Incode|"myTorus"}} is the name for the object. |
* Where {{Incode|"myTorus"}} is the name for the object. |
||
* The function returns the newly created object. |
* The function returns the newly created object. |
||
Example: |
|||
{{Code|code= |
|||
import FreeCAD as App |
|||
doc = App.activeDocument() |
|||
torus = doc.addObject("Part::Torus", "myTorus") |
|||
torus.Radius1 = 20 |
|||
torus.Radius2 = 10 |
|||
torus.Angle1 = -90 |
|||
torus.Angle2 = 45 |
|||
torus.Angle3 = 270 |
|||
torus.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 45, 10)) |
|||
doc.recompute() |
|||
}} |
|||
Line 90: | Line 115: | ||
}} |
}} |
||
{{ |
{{Part_Tools_navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 09:58, 3 March 2022
Тор |
Системное название |
---|
Part Torus |
Расположение в меню |
Деталь → Примитивы → Тор |
Верстаки |
Part(Деталь) |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Создать примитивы |
Описание
Создаёт простой параметрический тор с следующими параметрами: положение (position), угол1 (angle1), угол2 (angle2), угол3 (angle3), радиус1 (radius1) и радиус2 (radius2).
A Part Torus can be turned into a segment of a torus by changing its ДанныеAngle3 property. By changing its ДанныеAngle1 and/or ДанныеAngle2 properties the swept profile can become a segment of a circle.
Применение
- Переключитесь на верстак Part
- Существует несколько способов вызова команды:
Example
A Part Torus object created with the scripting example below is shown here.
Notes
- A Part Torus can also be created with the Part Primitives command. With that command you can specify the dimensions and placement at creation time.
See also: Property editor.
A Part Torus 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.
Torus
- Радиус1(Radius1): Радиус окружности, вокруг которой вращается наш диск
- Радиус2 (Radius2): Радиус диска, определяющий форму тора
- Угол1 (Angle1): 1-й угол для обрезки / построения диска тора
- Угол2 (Angle2): 2-й угол для обрезки / построения диска тора
- Угол3 (Angle3): 3-й угол для определения длины окружности тора.
Scripting
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Torus can be created with the addObject()
method of the document:
torus = FreeCAD.ActiveDocument.addObject("Part::Torus", "myTorus")
- Where
"myTorus"
is the name for the object. - The function returns the newly created object.
Example:
import FreeCAD as App
doc = App.activeDocument()
torus = doc.addObject("Part::Torus", "myTorus")
torus.Radius1 = 20
torus.Radius2 = 10
torus.Angle1 = -90
torus.Angle2 = 45
torus.Angle3 = 270
torus.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 45, 10))
doc.recompute()
- Примитивы: Куб(Параллелограмм), Конус, Цилиндр, Сфера, Тор, Полый цилиндр,Примитивы, Связующие формы
- Создание и правка: Выдавливание, Построение фигуры вращения, Отражение, Скругление, Фаска, Создать плоскость из граней, 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, Start, Surface, TechDraw, Test Framework, Web