Part Cone/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav/ru
{{Docnav/ru
|[[Part_Sphere/ru|Сфера]]
|[[Part_Sphere/ru|Сфера]]
|[[Part_Torus/ru|Тор]]
|[[Part_Torus/ru|Тор]]
|[[Part_Module/ru|Модуль Part(Деталь)]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Sphere.svg
|IconL=Part_Sphere.svg
|IconR=Part_Torus.svg
|IconR=Part_Torus.svg
Line 13: Line 14:
|Name/ru=Конус
|Name/ru=Конус
|MenuLocation=Деталь → Примитивы → Конус
|MenuLocation=Деталь → Примитивы → Конус
|Workbenches=[[Part_Module/ru|Part]]
|Workbenches=[[Part_Workbench/ru|Part]]
|SeeAlso=[[Part_Primitives/ru|Создать примитивы]]
|SeeAlso=[[Part_Primitives/ru|Создать примитивы]]
}}
}}
Line 19: Line 20:
== Описание ==
== Описание ==


<div class="mw-translate-fuzzy">
Параметрический усеченный конус доступен из панели инструментов верстака Part, через меню (подменю примитивы), диалогового окна Создать примитивы.
Параметрический усечённый конус доступен из панели инструментов верстака Part, через меню (подменю примитивы), диалогового окна Создать примитивы.
</div>


The default Part Cone is truncated. It can be turned into a full, untruncated, cone by changing its {{PropertyData|Radius1}} or {{PropertyData|Radius2}} property to zero. It can be turned into a segment of a cone by changing its {{PropertyData|Angle}} property.
==Использование==


[[Image:Part_Cone_Example.png|400px]]
# Switch to the [[Image:Workbench_Part.svg|16px]] [[Part_Workbench|Part Workbench]]
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Part_Cone.svg|16px]]}} button in the toolbar.
#* Select the {{MenuCommand|Part → Primitives → [[Image:Part_Cone.svg|16px]] Cone}} from the menu bar.


== Применение ==


<div class="mw-translate-fuzzy">
'''Result:''' The default values create a truncated parametric cone, defined by {{incode|Radius1}}, {{incode|Radius2}}, {{incode|Height}}, and {{incode|Angle}} parameters. The default cone will be positioned at origin (point 0,0,0) on creation. The angle parameter permits the creation of a portion of cone (it is set to 360° by default), and the radius 1 and 2 correspond to base and top radius of the truncated cone.
# Переключитесь на [[Image:Workbench_Part.svg|16px]] [[Part_Workbench/ru|верстак Part]]
# Существует два способа вызова данной команды:
#* Нажатием на иконку {{Button|[[Image:Part_Cone.svg|16px]] Конуса}} на панели инструментов.
#* Или через пункт меню {{MenuCommand|Деталь → Примитивы → [[Image:Part_Cone.svg|16px]] Конус}}.
</div>


== Options ==
== Example ==
{|
| [[File:PartConeProperty_en.png]]
|
{{KEY|Cone}}
* '''Radius 1:''' radius of the arc or circle defining the lower face
* '''Radius 2:''' radius of the arc or circle defining the upper face
* '''Height:''' the height of the Part Cone
* '''Angle:''' the number of degrees of the arc or circles defining the upper and lower faces of the truncated cone. The default 360 creates circular faces, a lower value will create a portion of a cone as defined by upper and lower faces each with edges defined by an arc of the number of degrees and two radii.
|}


[[Image:Part_Cone_Scripting_Example.png|thumb|Part Cone from the scripting example]]
[[File:Otherwisedefault270degree_Part_Cone.png]]


A Part Cone object created with the [[#Scripting|scripting example]] below is shown here.
{{Caption|Above: shows a Part Cone with the parameter "Angle" set to 270 degrees and all other parameters are at their default values.}}


==Scripting==
== Notes ==


* A Part Cone 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.


== Свойства ==
{{Docnav

|[[Part_Sphere|Sphere]]
See also: [[Property_editor|Property editor]].
|[[Part_Torus|Torus]]

|[[Part_Module|Part]]
A Part Cone 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|Cone}}

<div class="mw-translate-fuzzy">
* '''Радиус 1 (Radius 1):''' радиус дуги или окружности, определяющей нижнюю грань
* '''Радиус 2 (Radius 2):''' радиус дуги или окружности, определяющей верхнюю грань
* '''Высота (Height):''' высота Конуса
* '''Угол (Angle):''' размер дуги в градусах или полные окружности, определяющих верхнюю и нижнюю грани усеченного конуса. По умолчанию значение 360 создает полностью круговые грани, меньшее значение создаст часть(сектор) конуса, определяемую верхней и нижней гранями, каждая из которых имеет рёбра, определяемые длиной дуги в градусах и двумя радиусами.
</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 Cone can be created with the {{Incode|addObject()}} method of the document:

{{Code|code=
cone = FreeCAD.ActiveDocument.addObject("Part::Cone", "myCone")
}}

* Where {{Incode|"myCone"}} is the name for the object.
* The function returns the newly created object.

Example:

{{Code|code=
import FreeCAD as App

doc = App.activeDocument()

cone = doc.addObject("Part::Cone", "myCone")
cone.Radius1 = 5
cone.Radius2 = 10
cone.Height = 50
cone.Angle = 270
cone.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 60, 15))

doc.recompute()
}}


{{Docnav/ru
|[[Part_Sphere/ru|Сфера]]
|[[Part_Torus/ru|Тор]]
|[[Part_Workbench/ru|Верстак Part]]
|IconL=Part_Sphere.svg
|IconL=Part_Sphere.svg
|IconR=Part_Torus.svg
|IconR=Part_Torus.svg
Line 58: Line 108:
}}
}}


{{Part Tools navi{{#translation:}}}}
{{Part_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 08:56, 4 March 2022

Конус

Системное название
Part Cone
Расположение в меню
Деталь → Примитивы → Конус
Верстаки
Part
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Создать примитивы

Описание

Параметрический усечённый конус доступен из панели инструментов верстака Part, через меню (подменю примитивы), диалогового окна Создать примитивы.

The default Part Cone is truncated. It can be turned into a full, untruncated, cone by changing its ДанныеRadius1 or ДанныеRadius2 property to zero. It can be turned into a segment of a cone by changing its ДанныеAngle property.

Применение

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

Example

Part Cone from the scripting example

A Part Cone object created with the scripting example below is shown here.

Notes

  • A Part Cone 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 Cone 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.

Cone

  • Радиус 1 (Radius 1): радиус дуги или окружности, определяющей нижнюю грань
  • Радиус 2 (Radius 2): радиус дуги или окружности, определяющей верхнюю грань
  • Высота (Height): высота Конуса
  • Угол (Angle): размер дуги в градусах или полные окружности, определяющих верхнюю и нижнюю грани усеченного конуса. По умолчанию значение 360 создает полностью круговые грани, меньшее значение создаст часть(сектор) конуса, определяемую верхней и нижней гранями, каждая из которых имеет рёбра, определяемые длиной дуги в градусах и двумя радиусами.

Scripting

See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.

A Part Cone can be created with the addObject() method of the document:

cone = FreeCAD.ActiveDocument.addObject("Part::Cone", "myCone")
  • Where "myCone" is the name for the object.
  • The function returns the newly created object.

Example:

import FreeCAD as App

doc = App.activeDocument()

cone = doc.addObject("Part::Cone", "myCone")
cone.Radius1 = 5
cone.Radius2 = 10
cone.Height = 50
cone.Angle = 270
cone.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(30, 60, 15))

doc.recompute()