Редактирование объектов полигональной формы
Perhaps the most versatile object shape in Altium Designer is the polygonal object. There are a number of polygonal-shaped objects including:
- Region – region objects are used to create polygonal-shaped copper regions, polygon cutouts, board cutouts, and cavity definitions.
- Polygon Pour – polygon pours can be created from region objects or tracks and arcs. When created from regions, each isolated section of copper is a region object.
- Extruded 3D Body – the plan view of an extruded 3D Body is defined as a polygonal shape.
- Board Shape – a board shape or board outline is a closed polygon that defines the boundary, or extents, of the board.
- Room – a room is a primitive design object. It is a region that assists in the placement of components.
- Custom Shape Pad – when a pad is defined as a custom shape pad, its shape can be interactively edited in the design space as a polygonal object.
Placement Modes
While placing a polygonal-shaped object, there are five available corner modes, four of which also have corner direction sub-modes. During placement:
- Press Shift+Spacebar to cycle through the five available corner modes: 45 degree, 45 degree with arc, 90 degree, 90 degree with arc, and Any Angle.
- Press Spacebar to toggle between the two corner direction sub-modes.
- When in either of the arc corner modes, hold the or keys to shrink or grow the arc. Hold the Shift key as you press to accelerate arc resizing.
- Press the 1 shortcut key to toggle between placing two edges per click, or one edge per click. In this second mode the dashed edge is referred to as the look-ahead segment (as shown in the last image in the set below).
- Press the Backspace key to remove the last vertex.
Editing a Polygonal Object
Click once on a polygonal object to select it. This puts the polygonal object into edit mode. The outer shape of the polygonal object is defined by a series of edges. Each edge is represented by an end vertex at each end, shown as a solid white square, and a center vertex in the middle, shown as a hollow white square. Each end vertex represents the location where two edges meet.
Combining Selected Polygon Pours
Two or more polygon pour objects can be combined by performing the following sequence of actions:
- Place new (or drag existing polygon pours) so that they are overlapping each other as required.
- Select all polygon pours that are to be combined.
- Right-click over one of the pours in the selection then choose the Polygon Actions » Combine Selected Polygons command from the context menu.
Subtracting Selected Polygon Pours
One or more polygon pour objects can be subtracted from another 'base' polygon pour by performing the following sequence of actions:
- Place new, or drag existing polygon pours so that they are overlapping the required base polygon pour - this is the pour from which to be 'subtracted'.
- Select the base polygon pour, right-click then choose the Polygon Actions » Subtract Polygons From Selected command from the context menu.
- Select the polygons to be subtracted.
- Right-click or press Esc to complete the process.
Modify Polygon Border
In addition to the vertex editing, the Modify Polygon Border command allows you to easily change the shape of polygon pours and regions. The command is performed by selecting the desired polygon, right-clicking on it then selecting Polygon Actions » Modify Polygon Border. Once the command is launched, the cursor becomes a crosshair. Each time you click, a new vertex is added. As during polygon placement, the Shift+Spacebar keys can be used to change corner shapes.
Modify Board Shape
Similar to the Modify Polygon Border command, the Modify Board Shape command allows you to easily change the shape of the board. The command is accessed in Board Planning Mode (View » Board Planning Mode) by clicking Design » Modify Board Shape. Once the command is launched, the cursor becomes a crosshair. Each time you click, a new vertex is added. The Shift+Spacebar keys can be used to change corner shapes.
Modify Region Border
In addition to the vertex editing, the Modify Region Border command allows you to easily change the shape of regions. The command is run by selecting the desired region, right-clicking on it then selecting Polygon Actions » Modify Polygon Border. Once the command is launched, the cursor becomes a crosshair. Each time you click, a new vertex is added. The Shift+Spacebar keys can be used to change corner shapes.
Vertex Definition and Management
When editing polygons, there are three editing modes available as outlined in the paragraphs below. The current mode can be changed while dragging a vertex by pressing the Shift+Spacebar keys to cycle through the modes. Feedback about where the cursor is on the board and which editing mode is currently active can be viewed on the Status bar and in the Heads-Up display.
Vertex Editing Modes
Break Mode
In this mode, click and drag on the center vertex to break that edge into two edges. The cursor displays a double-arrow indicating the Break mode. Note that the mouse cursor has four arrowheads that indicate that you can drag this vertex in all four directions.
Incurvate (Arc) Mode
In this mode, click and drag on the center vertex to incurvate, or arc, that edge. Note that the mouse cursor has two arrowheads indicating that you can drag this vertex in two directions.
Move Mode
In this mode, click and drag on the center vertex to move that edge, maintaining the edge length. Note that the mouse cursor has four arrowheads, indicating that you can drag this vertex in all four directions.
Corner Vertex Behavior
The three editing modes are also available when moving a corner vertex (use Shift+Spacebar to change modes):
- Moving Vertex mode - freely move the end vertex, maintaining it as an end vertex.
- Miter to Segment mode - creates a new straight edge, with the moving end vertex becoming the center vertex for that edge.
- Miter to Arc mode - creates a new curved edge, with the moving end vertex becoming the center vertex for that edge.
Sliding an Edge
When you hover over an edge, that edge displays as a thick white line. Click+drag on the edge to slide it, shrink or grow the moving edge to maintain the position of adjoining edges.
Adding or Deleting a Vertex
You can interactively add a vertex or delete a vertex using the following techniques:
- To add a vertex, hold Ctrl then position the cursor along the edge — the new vertex displays under the cursor — click and move the cursor slightly to insert the new vertex.
- To delete a vertex, click and hold on the vertex as if you were going to move it, then press the Delete key.
Alignment Guides
As you move a vertex around, green alignment guides appear. These appear at useful locations, for example, when the vertex location will result in the new edge aligning with an existing edge or when an arc chord aligns with the adjacent edge. There is a slight stickiness when the guidelines appear, making it easy to maintain that vertex position.
Preventing Self-Intersections
When placing or editing a polygon-shaped object and a self-intersection of its contour occurs, a warning opens to alert you to this fact. You can Proceed with the current shape or Revert to the last non-intersecting vertex.