Part Torus/ro: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Part Torus") |
(Updating to match new version of source page) |
||
(23 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand|Name=Part Torus|MenuLocation=Part → Torus||Workbenches=[[Part Module|Part]], Complete|SeeAlso=[[Part_CreatePrimitives|Part CreatePrimitives]]}} |
|||
{{Docnav |
|||
Creates a simple parametric torus, with position, angle1, angle2, angle3, radius1 and radius2 parameters. The torus will be positioned at origin (point 0,0,0) on creation. 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. |
|||
|[[Part_Cone|Cone]] |
|||
|[[Part_Tube|Tube]] |
|||
|[[Part_Workbench|Part]] |
|||
|IconL=Part_Cone.svg |
|||
|IconR=Part_Tube.svg |
|||
|IconC=Workbench_Part.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{clear}} |
|||
{{GuiCommand/ro |
|||
<languages/> |
|||
|Name=Part Torus |
|||
|Name/ro=Part Torus |
|||
|MenuLocation=Part → Torus |
|||
| |
|||
|Workbenches=[[Part_Workbench/ro|Part]], Complete |
|||
|SeeAlso=[[Part_CreatePrimitives/ro|Part CreatePrimitives]] |
|||
}} |
|||
</div> |
|||
== Description == |
|||
<div class="mw-translate-fuzzy"> |
|||
== Descriere == |
|||
Creează un tor simplu parametric, cu parametrii de poziție, unghi1, unghi2, unghi 3, raza1 și raza2. |
|||
</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. |
|||
[[Image:Part_Torus_Example.png|400px]] |
|||
<div class="mw-translate-fuzzy"> |
|||
== Cum se folosește == |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
În bara de lucru [[Part_Workbench|Part]] faceți clic pe pictograma torus [[Image: Part Torus.png|32px]]. Torusul va fi poziționat la origine (punctul 0,0,0) la crearea. |
|||
Parametrii unghiului (unghiul1, unghiul2, unghiul3), precum și parametrii razei (raza1, raza2) permit parametrizarea torusului, a se vedea paragraful următor. |
|||
</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]] |
|||
The parameter Radius1 has a value of 20 mm. |
|||
</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|Radius1:}} Raza cercului în jurul căruia circulă discul |
|||
* {{Parameter|Radius2:}} Raza discului care definește forma torului |
|||
* {{Parameter|Angle1:}} un unghi pentru a tăia / defini discul torului |
|||
* {{Parameter|Angle2:}} al doilea unghi pentru a tăia / defini discul torului |
|||
* {{Parameter|Angle3:}} al treilea unghi pentru a defini circumferința torului. |
|||
</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 |
|||
|[[Part_Cone|Cone]] |
|||
|[[Part_Tube|Tube]] |
|||
|[[Part_Workbench|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 |
poziția meniului |
---|
Part → Torus |
Ateliere |
Part, Complete |
scurtătură |
nici unul |
Prezentat în versiune |
- |
A se vedea, de asemenea, |
Part CreatePrimitives |
Description
Descriere
Creează un tor simplu parametric, cu parametrii de poziție, unghi1, unghi2, unghi 3, raza1 și raza2.
A Part Torus can be turned into a segment of a torus by changing its DateAngle3 property. By changing its DateAngle1 and/or DateAngle2 properties the swept profile can become a segment of a circle.
Cum se folosește
În bara de lucru Part faceți clic pe pictograma torus . Torusul va fi poziționat la origine (punctul 0,0,0) la crearea. Parametrii unghiului (unghiul1, unghiul2, unghiul3), precum și parametrii razei (raza1, raza2) permit parametrizarea torusului, a se vedea paragraful următor.
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
- Radius1: Raza cercului în jurul căruia circulă discul
- Radius2: Raza discului care definește forma torului
- Angle1: un unghi pentru a tăia / defini discul torului
- Angle2: al doilea unghi pentru a tăia / defini discul torului
- Angle3: al treilea unghi pentru a defini circumferința torului.
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()
- Primitives: Box, Cylinder, Sphere, Cone, Torus, Tube, Create primitives, Shape builder
- Creation and modification: Extrude, Revolve, Mirror, Fillet, Chamfer, Make face from wires, Ruled Surface, Loft, Sweep, Section, Cross sections, 3D Offset, 2D Offset, Thickness, Projection on surface, Attachment
- Boolean: Make compound, Explode Compound, Compound Filter, Boolean, Cut, Fuse, Common, Connect, Embed, Cutout, Boolean fragments, Slice apart, Slice, XOR
- Measure: Measure Linear, Measure Angular, Measure Refresh, Clear All, Toggle All, Toggle 3D, Toggle Delta
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub