|
|
| Ubicación en el Menú |
|---|
| Pieza → Crear primitivas → Prisma |
| Entornos de trabajo |
| Part |
| Atajo de teclado por defecto |
| Ninguno |
| Introducido en versión |
| 0.14 |
| Ver también |
| Part Primitivas, Part Cubo |
Un Prisma de Part es un sólido definido por el corte transversal de un polígono regular y una altura.
See Part Primitives.

A Part Prism object created with the scripting example below is shown here.
See also: Property editor.
A Part Prism object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Prism
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Prism can be created with the addObject() method of the document:
prism = FreeCAD.ActiveDocument.addObject("Part::Prism", "myPrism")
"myPrism" is the name for the object.Example:
import FreeCAD as App
doc = App.activeDocument()
prism = doc.addObject("Part::Prism", "myPrism")
prism.Polygon = 5
prism.Circumradius = 10
prism.Height = 50
prism.FirstAngle = 22.5
prism.SecondAngle = 45
prism.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 75, 30))
doc.recompute()