Part Torus/es

Description
Crea un toro paramétrico simple, con los parámetros de posición, ángulo1, ángulo2, ángulo3, radio1 y radio2. El toro se posicionará en el origen (point 0,0,0). Los parámetros de ángulo permiten crear una porción del toro en lugar de uno completo (están establecidos como 360° por defecto), los radios 1 y 2 definen respectivamente el tamaño del agujero y del anillo del toro.



Usage

 * 1) Switch to the [[Image:Workbench_Part.svg|16px]] Part Workbench
 * 2) There are several ways to invoke the command:
 * 3) * Press the button in the toolbar.
 * 4) * Select the from the menu bar.

Result: The torus will be positioned at origin (point 0,0,0) on creation.

The angle parameters (angle1, angle2, angle3), as well as the radius parameters (radius1, radius2) permit to parametrize the torus, see next section.

Option


Parameter

A torus can be assimilated to a small disc that makes a circular orbit around an imaginary axe. Thus the parametric torus is defined by the following parameters:


 * Radius of the circle around which the disc circulate
 * Radius of the disc defining the form of the torus
 * 1st angle to cut / define the disc of the torus
 * 2nd angle to cut / define the disc of the torus
 * 3rd angle to define the circumference of the torus.

as well as the standard set of placement parameters. The pictures below give a visual overview of the parameters antecedently mentioned:

The parameter Radius1 has a value of 20 mm.

The parameter Radius2 has a value of 2 mm.

The parameter Angle1 has a value of -90°. Notice that, the "angle measure" tool cannot display negative angle. Considered the displayed value in picture as "-90°".

The parameter Angle2 has a value of 90°.

The parameter Angle3 has a value of 90°.

Scripting
A Part Torus can be created using the following function:


 * Where is the name for the object.
 * The function returns the newly created object.