Part Torus/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(46 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand/ru|Name=Part Torus|Name/ru=Part Torus|MenuLocation=Part → Torus||Workbenches=[[Part Module/ru|Part]], Complete|SeeAlso=[[Part_CreatePrimitives/ru|Part CreatePrimitives]]}}


{{Docnav/ru
== Description ==
|[[Part_Cone/ru|Конус]]
Creates a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 as parameters.
|[[Part_Tube/ru|Создать трубу]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Cone.svg
|IconR=Part_Tube.svg
|IconC=Workbench_Part.svg
}}


{{GuiCommand/ru
[[File:SimpleTorus.jpg|400px]]
|Name=Part Torus
|Name/ru=Тор
|MenuLocation=Деталь → Примитивы → Тор
|Workbenches=[[Part_Workbench/ru|Part(Деталь)]]
|SeeAlso=[[Part_Primitives/ru|Создать примитивы]]
}}


== How to use ==
== Описание ==


<div class="mw-translate-fuzzy">
In the [[Part_Workbench|Part]] workbench click on the torus icon [[Image:Part Torus.png|32px]]. The torus will be positioned at origin (point 0,0,0) on creation.
Создаёт простой параметрический тор с следующими параметрами: положение (position), угол1 (angle1), угол2 (angle2), угол3 (angle3), радиус1 (radius1) и радиус2 (radius2).
The angle parameters (angle1, angle2, angle3), as well as the radius parameter ( radius1 , radius2) parameters permit to parametrize the torus. The angle parameters permit to make a portion of torus instead of a full one (they are set to 360° by default), the radius 1 and 2 define respectively the size of the hole and the ring thickness of the torus.
</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.
== Option ==


[[Image:Part_Torus_Example.png|400px]]
== Property ==


<div class="mw-translate-fuzzy">
== Scripting ==
==Применение==
</div>


<div class="mw-translate-fuzzy">
{{clear}}
# Переключитесь на [[Image:Workbench_Part.svg|16px]] [[Part_Workbench/ru|верстак Part]]
<languages/>
# Существует несколько способов вызова команды:
#* Нажмите на иконку {{Button|[[Image:Part_Torus.svg|16px]] тора}} на панели инструментов.
#* Выберите из меню {{MenuCommand|Деталь → Примитивы → [[Image:Part_Torus.svg|16px]] Тор}}.
</div>

== Example ==

[[Image:Part_Torus_Scripting_Example.png|thumb|Part Torus from the scripting example]]

A Part Torus object created with the [[#Scripting|scripting example]] below is shown here.

== Notes ==

* 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">
[[File:TorusExampleRadius1.jpg]]
Параметр Радиус1 (Radius1) со значением 20мм.
</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:

=== Data ===

{{TitleProperty|Attachment}}

The object has the same attachment properties as a [[Part_Part2DObject#Data|Part Part2DObject]].

{{TitleProperty|Torus}}

<div class="mw-translate-fuzzy">
* {{Parameter|Радиус1(Radius1):}} Радиус окружности, вокруг которой вращается наш диск
* {{Parameter|Радиус2 (Radius2):}} Радиус диска, определяющий форму тора
* {{Parameter|Угол1 (Angle1):}} 1-й угол для обрезки / построения диска тора
* {{Parameter|Угол2 (Angle2):}} 2-й угол для обрезки / построения диска тора
* {{Parameter|Угол3 (Angle3):}} 3-й угол для определения длины окружности тора.
</div>

== Scripting ==

See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation], [[Part_scripting|Part scripting]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

A Part Torus can be created with the {{Incode|addObject()}} method of the document:

{{Code|code=
torus = FreeCAD.ActiveDocument.addObject("Part::Torus", "myTorus")
}}

* Where {{Incode|"myTorus"}} is the name for the 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()
}}


{{Docnav/ru
|[[Part_Cone/ru|Конус]]
|[[Part_Tube/ru|Создать трубу]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Cone.svg
|IconR=Part_Tube.svg
|IconC=Workbench_Part.svg
}}

{{Part_Tools_navi{{#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.

Применение

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