Part: Torul

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 4% complete.
Outdated translations are marked like this.

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

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.

The parameter Radius1 has a value of 20 mm.

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