Призма

From FreeCAD Documentation
This page is a translated version of the page Part Prism and the translation is 21% complete.
Outdated translations are marked like this.

Призма

Системное название
Part Prism
Расположение в меню
Деталь → Создать примитивы... → Призма
Верстаки
Part(Деталь), OpenSCAD
Быстрые клавиши
Нет
Представлено в версии
0.14
См. также
Примитивы, Куб

Описание

Призма - это твёрдое тело, определяемое поперечным сечением правильного многоугольника и высотой.

Применение

See Part Primitives.

Example

Part Prism from the scripting example

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:

Data

Attachment

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

Prism

  • Polygon - количество сторон многоугольника, в поперечном сечении Призмы.
  • Circumradius - радиус описанной окружности(circumradius) - это расстояние от центра многоугольника до его вершины.
  • Height - высота Призмы.

Scripting

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")
  • Where "myPrism" is the name for the object.
  • The function returns the newly created 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()