|
|
| Umístění Menu |
|---|
| Díl -> Díl Vytváření zákl.geom.tvarů -> Klín |
| Pracovní stoly |
| Modul Díl |
| Výchozí zástupce |
| Nikdo |
| Představen ve verzi |
| - |
| Viz také |
| Díl Vytváření zákl.geom.tvarů |
Vytváří parametrický objekt Klín. Defaultně se za základnu považuje větší plocha a menší je vrchol.
See Part Primitives.

A Part Wedge object created with the scripting example below is shown here.
See also: Property editor.
A Part Wedge 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.
Wedge
Distance): The lowest X coordinate of the front face of the wedge. The default is 0mm.Distance): The Y coordinate of the front face of the wedge. The default is 0mm.Distance): The lowest Z coordinate of the front face of the wedge. The default is 0mm.Distance): The lowest X coordinate of the rear face of the wedge. The default is 2mm.Distance): The lowest Z coordinate of the rear face of the wedge. The default is 2mm.Distance): The highest X coordinate of the front face of the wedge. The default is 10mm.Distance): The Y coordinate of the rear face of the wedge. The default is 10mm.Distance): The highest Z coordinate of the front face of the wedge. The default is 10mm.Distance): The highest X coordinate of the rear face of the wedge. The default is 8mm.Distance): The highest Z coordinate of the rear face of the wedge. The default is 8mm.See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Wedge can be created with the addObject() method of the document:
wedge = FreeCAD.ActiveDocument.addObject("Part::Wedge", "myWedge")
"myWedge" is the name for the object.Example:
import FreeCAD as App
doc = App.activeDocument()
wedge = doc.addObject("Part::Wedge", "myWedge")
wedge.Xmin = 1
wedge.Ymin = 2
wedge.Zmin = 3
wedge.X2min = 4
wedge.Z2min = 6
wedge.Xmax = 15
wedge.Ymax = 20
wedge.Zmax = 55
wedge.X2max = 10
wedge.Z2max = 12
wedge.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(75, 60, 30))
doc.recompute()