Entwurf Polygon

From FreeCAD Documentation
Revision as of 11:34, 9 December 2021 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎română • ‎svenska • ‎čeština • ‎русский
Arrow-left.svg Vorherige: Draft Ellipse.svg Ellipse
Nächste: Rechteck Draft Rectangle.svg Arrow-right.svg

Draft Polygon.svg Entwurf Polygon

Menüeintrag
Entwurf → Polygon
Arbeitsbereich
Entwurf, Arch
Standardtastenkürzel
P G
Eingeführt in Version
0.7
Siehe auch
Entwurf Kreis, Entwurf Muster

Beschreibung

Das Polygonwerkzeug erstellt ein regelmäßiges Polygon, das in einen Umfang eingeschrieben ist, indem es zwei Punkte auswählt, den Mittelpunkt und den Radius. Es wird das Draft Linestyle/de verwendet, das auf dem Draft Tray/de eingestellt ist.

Das Polygon wird in einem Kreis mit dem angegebenen Radius einbeschrieben; es kann nach der Erstellung durch Ändern seiner Zeichenmoduseigenschaften auf umschrieben umgeschaltet werden.

Draft polygon example.jpg

Regelmäßiges Polygon, das durch den Mittelpunkt und den Radius definiert ist

Anwendung

See also: Draft Tray, Draft Snap and Draft Constrain.

  1. Drücke die Taste Draft Polygon.png Draft Polygon oder drücke P dann G Tasten.
  2. Passe die gewünschte Anzahl von Seiten im Optionsdialog an.
  3. Klicke auf einen ersten Punkt in der 3D-Ansicht, oder gib eine Koordinate und drücke die Draft AddPoint.svg add point Taste.
  4. Klicke auf einen anderen Punkt in der 3D-Ansicht oder gib einen Radiuswert ein, um den Polygonradius zu definieren.

Options

The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.

  • To manually enter the coordinates for the center enter the X, Y and Z component, and press Enter after each. Or you can press the Draft AddPoint.svg Enter point button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
  • The Relative checkbox, displayed in FreeCAD version 0.19 and earlier, has no purpose for this command.
  • Press G or click the Global checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system. introduced in version 0.20
  • Press L or click the Filled checkbox to toggle filled mode. If filled mode is on, the created polygon will have DatenMake Face set to true and will have a filled face.
  • Press T or click the Continue checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating polygons.
  • Press S to switch Draft snapping on or off.
  • Press Esc or the Close button to abort the command.

Notes

Das Polygon kann durch Doppelklick auf das Element in der Baumansicht oder durch Drücken der Taste Draft Edit.svg Draft Edit/de bearbeitet werden. Dann kannst Du die Mittel- und Radiuspunkte auf eine neue Position verschieben.

Preferences

See also: Preferences Editor and Draft Preferences.

  • To change the number of decimals used for the input of coordinates and radii: Edit → Preferences... → General → Units → Units settings → Number of decimals.
  • To change the initial value of filled mode: Edit → Preferences... → Draft → General settings → Draft tools options → Fill objects with faces whenever possible. Changing the filled mode in a task panel will override this preference for the current FreeCAD session.
  • If the Edit → Preferences... → Draft → General settings → Draft tools options → Use Part Primitives when available option is checked, the command will create a Part RegularPolygon instead of a Draft Polygon.

Eigenschaften

See also: Property editor.

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

Data

Draft

  • DatenArea (Area): (read-only) specifies the area of the face of the polygon. The value will be 0.0 if DatenMake Face if false.
  • DatenChamfer Size (Length): specifies the length of the chamfers at the corners of the polygon.
  • DatenDraw Mode (Enumeration): specifies if the polygon is inscribed in a circle or circumscribed around a circle.
  • DatenFaces Number (Integer): specifies the number of sides of the polygon.
  • DatenFillet Radius (Length): specifies the radius of the fillets at the corners of the polygon.
  • DatenMake Face (Bool): specifies if the polygon makes a face or not. If it is true a face is created, otherwise only the perimeter is considered part of the object.
  • DatenRadius (Length): specifies the radius of the circle that defines the polygon.

View

Draft

  • AnsichtPattern (Enumeration): specifies the Draft Pattern with which to fill the face of the polygon. This property only works if DatenMake Face is true and if AnsichtDisplay Mode is Flat Lines.
  • AnsichtPattern Size (Float): specifies the size of the Draft Pattern.

Scripting

Skripten

Siehe auch: Draft API und FreeCAD Grundlagen Skripten.

To create a Draft Polygon use the make_polygon method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makePolygon method.

polygon = make_polygon(nfaces, radius=1, inscribed=True, placement=None, face=None, support=None)
  • Creates a polygon object with the given number of faces (nfaces), and based on a circle of radius in millimeters.
  • If inscribed is True, the polygon is inscribed in the circle, otherwise it will be circumscribed.
  • If placement is None the polygon is created at the origin and one of its vertices will lie on the X axis.
  • If face is True, the polygon will make a face, that is, it will appear filled.

Beispiel:

import FreeCAD as App
import Draft

doc = App.newDocument()

polygon1 = Draft.make_polygon(4, radius=500)
polygon2 = Draft.make_polygon(5, radius=750)

zaxis = App.Vector(0, 0, 1)
p3 = App.Vector(1000, 1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 90))

Polygon3 = Draft.make_polygon(6, radius=1450, placement=place3)

doc.recompute()


Arrow-left.svg Vorherige: Draft Ellipse.svg Ellipse
Nächste: Rechteck Draft Rectangle.svg Arrow-right.svg