Part Sphère

From FreeCAD Documentation
Revision as of 10:11, 5 March 2022 by David69 (talk | contribs)

Part Sphère

Emplacement du menu
Pièce → Primitives → Sphère
Ateliers
Part
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Part Primitives

Description

Crée une sphère paramétrique simple avec des paramètres de position angle1, angle2, angle3 et rayon.

A Part Sphere can be truncated at the top and/or bottom by changing its DonnéesAngle1 and/or DonnéesAngle2 properties. It can be turned into a segment of a sphere by changing its DonnéesAngle3 property.

Utilisation

  1. Basculez vers l' Atelier PArt
  2. Lancez la commande de plusieurs manières:
    • Appuyez sur le bouton Sphère dans la barre d'outils.
    • Sélectionnez Pièce → Primitives → Sphère dans la barre de menus.

Example

Part Sphere from the scripting example

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

Notes

  • A Part Sphere can also be created with the Part Primitives command. With that command you can specify the dimensions and placement at creation time.

Propriétés

See also: Property editor.

A Part Sphere object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Données

Attachment

The object has the same attachment properties as a Part Part2DObject.

Sphere

  • DonnéesRadius: rayon de la sphère
  • DonnéesAngle 1: 1er angle pour couper/définir la sphère
  • DonnéesAngle 2: 2ème angle pour couper/définir la sphère
  • DonnéesAngle 3: 3ème angle pour couper/définir la sphère

Script

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

Une Part Sphère peut être créée en utilisant la fonction suivante:

sphere = FreeCAD.ActiveDocument.addObject("Part::Sphere", "mySphere")
  • "mySphere" est le nom de l'objet.
  • La fonction restitue l'objet nouvellement créé.

Example:

import FreeCAD as App

doc = App.activeDocument()

sphere = doc.addObject("Part::Sphere", "mySphere")
sphere.Radius = 20
sphere.Angle1 = -30
sphere.Angle2 = 45
sphere.Angle3 = 90
sphere.Placement = App.Placement(App.Vector(3, 9, 11), App.Rotation(75, 60, 30))

doc.recompute()