Kreslení Mnohoúhelníku

From FreeCAD Documentation
Revision as of 18:24, 20 January 2014 by Honza32 (talk | contribs) (Created page with "==Použití== # Stiskněte tlačítko {{KEY|16px Mnohoúhelník}} nebo klávesy {{KEY|P}} a potom {{KEY|G}} # Klikněte na prvn...")

Draft Polygon

Menu location
Draft -> Polygon
Workbenches
Kreslení, Architektura
Default shortcut
P G
Introduced in version
-
See also
None

Popis

Nástroj Mnohoúhelník vytváří pravidelný mnohoúhelník zadáním 2 bodů, střed a druhý bod definující poloměr. Použije se tloušťka čáry a barva předem zadaná v záložce Nástrojů.

Použití

  1. Stiskněte tlačítko Mnohoúhelník nebo klávesy P a potom G
  2. Klikněte na první bod ve 3D pohledu nebo zadejte jeho souřadnice pro určení středu
  3. V dialogovém okně voleb zadejte počet stran,
  4. Klikněte na další bod ve 3D pohledu nebo zadejte hodnotu definující poloměr mnohoúhelníka. Mnohoúhelník je také povrchem, i když se jeví jako drátový model.

Options

  • To enter coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
  • Press T or click the checkbox to check/uncheck the Continue button. If continue mode is on, the Polygon tool will restart after you finish or close it, allowing you to draw another one without pressing the Polygon button again.
  • Press CTRL while drawing to force snapping your point to the nearest snap location, independently of the distance.
  • Press SHIFT while drawing to constrain your next point horizontally or vertically in relation to the last one.
  • Press I or the Filled button to have the polygon to appear as a face after it has been closed. This simply sets the View->Property of the Rectangle to "Flat lines" or "Wireframe", so it can easily be changed later.
  • Press ESC or the Cancel button to abort the current command.

Properties

  • ÚdajeRadius: The radius of the defining circle
  • ÚdajeDraw Mode: Specifies if the polygon is inscribed or circumscribed around the defining circle
  • ÚdajeFaces Number: The number of sides of the polygon
  • ÚdajeFillet Radius: Specifies a curvature radius to give to the corners of the rectangle

Scripting

The Polygon tool can by used in macros and from the python console by using the following function:

 '''makePolygon(nfaces,[radius],[inscribed],[placement],[face])'''
  • Creates a polygon object with the given number of faces and the radius.
  • If inscribed is False, the polygon is circumscribed around a circle with the given radius, otherwise it is inscribed.
  • If face is True, the resulting shape is displayed as a face, otherwise as a wireframe.
  • Returns the newly created object.

Example:

 import Draft
 Draft.makePolygon(5,radius=3)