|
Расположение в меню |
---|
Деталь → Примитивы → Тор |
Верстаки |
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.
A Part Torus object created with the scripting example below is shown here.
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:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Torus
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")
"myTorus"
is the name for the 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()