Kreslení Mnohoúhelníku

From FreeCAD Documentation
Revision as of 20:58, 24 October 2014 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Draft Polygon

Umístění Menu
Draft -> Polygon
Pracovní stoly
Kreslení, Architektura
Výchozí zástupce
P G
Představen ve verzi
-
Viz také
Nikdo

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íku. 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.
  • Polygons, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property below.

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
  • ÚdajeChamfer Size: Specifies the size of chamfered corners
  • ÚdajeFillet Radius: Specifies a curvature radius to give to the corners of the rectangle
  • PohledPattern: Specifies a hatch pattern to fill the wire with
  • PohledPattern Size: Specifies the size of the hatch pattern

See also Draft Pattern page.

Skriptování

Nástroj Mnohoúhelník může být využit v makrech a z konzoly Pythonu použitím následující funkce:

 makePolygon(nfaces,[radius],[inscribed],[placement],[face])
  • Vytvoří objekt mnohoúhelník se zadaným počtem stran a poloměrem.
  • Je-li inscribed False, mnohoúhelník je opsán kolem kružnice s daným poloměrem. Jinak je vepsán dovnitř kružnice.
  • Je-li face True, výsledný tvar je zobrazen jako povrch, jinak jako drátový model.
  • Výstupem je nově vytvořený objekt.

Příklad:

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