Тор

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Part Torus and the translation is 19% complete.
Outdated translations are marked like this.

Тор

Системное название
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.

Применение

  1. Переключитесь на верстак Part
  2. Существует несколько способов вызова команды:
    • Нажмите на иконку тора на панели инструментов.
    • Выберите из меню Деталь → Примитивы → Тор.

Example

Part Torus from the scripting 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.

Параметр Радиус1 (Radius1) со значением 20мм.

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()