Draft Polygon/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/ru |Name=Draft Polygon |Name/ru=Draft Polygon |Workbenches=Draft, Arch |MenuLocation=Черчение -> Многоугол...")
 
(Updating to match new version of source page)
Line 23: Line 23:
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance.
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the last one.
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the last one.
* Press {{KEY|I}} or the {{KEY|'''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 {{KEY|I}} or the {{KEY|'''Filled'''}} button to have the polygon filled with a face after it has been closed
* Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to abort the current command.
* Press {{KEY|ESC}} or the {{KEY|'''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.
* Polygons, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property below.
Line 33: Line 33:
* {{PropertyData|Chamfer Size}}: Specifies the size of chamfered corners
* {{PropertyData|Chamfer Size}}: Specifies the size of chamfered corners
* {{PropertyData|Fillet Radius}}: Specifies a curvature radius to give to the corners of the rectangle
* {{PropertyData|Fillet Radius}}: Specifies a curvature radius to give to the corners of the rectangle
* {{PropertyData|Make Face}}: Fills the polygon with a face
* {{PropertyView|Pattern}}: Specifies a hatch pattern to fill the wire with
* {{PropertyView|Pattern}}: Specifies a hatch pattern to fill the wire with
* {{PropertyView|Pattern Size}}: Specifies the size of the hatch pattern
* {{PropertyView|Pattern Size}}: Specifies the size of the hatch pattern

Revision as of 17:39, 25 September 2016

Draft Polygon

Системное название
Draft Polygon
Расположение в меню
Черчение -> Многоугольник
Верстаки
Draft, Arch
Быстрые клавиши
P G
Представлено в версии
-
См. также
Нет

Description

The polygon tool creates a regular polygon by picking two points, the center and a second point defining a radius. It takes the linewidth and color previously set on the Tasks tab.

How to use

  1. Press the Draft Polygon button, or press P then G keys
  2. Click a first point on the 3D view, or type a coordinate to indicate the center
  3. Adjust the desired number of sides in the options dialog,
  4. Click another point on the 3D view, or type a radius value to define the polygon radius. The polygon will also be a face, even if it appears as wireframe.

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 filled with a face after it has been closed
  • 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

  • ДанныеRadius: The radius of the defining circle
  • ДанныеDraw Mode: Specifies if the polygon is inscribed or circumscribed around the defining circle
  • ДанныеFaces Number: The number of sides of the polygon
  • ДанныеChamfer Size: Specifies the size of chamfered corners
  • ДанныеFillet Radius: Specifies a curvature radius to give to the corners of the rectangle
  • ДанныеMake Face: Fills the polygon with a face
  • ВидPattern: Specifies a hatch pattern to fill the wire with
  • ВидPattern Size: Specifies the size of the hatch pattern

See also Draft Pattern page.

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)