操作挤压体、球和圆柱等3D主体

您正在阅读的是 24. 版本。关于最新版本,请前往 操作挤压体、球和圆柱等3D主体 阅读 25 版本

While placing generic 3D models is a recommended way of using 3D Body objects as this provides an accurate and detailed component representation on the PCB and gives more accurate 3D collision testing in the PCB editor, a 3D Body object also can be used for placing extruded, spherical, and cylindrical 3D Body shapes. There are three styles of simple 3D Body objects that can be placed:

Extruded In the X-Y plane (top view), the extruded object is defined interactively, in the same way that other polygonal objects are defined in the PCB editor. The object is then extruded up (or down) in the Z plane, based on the Overall Height and Standoff Height properties defined in the 3D Body mode of the Properties panel, and the Body Projection option. You can also apply a Texture File, such as a logo, to the surface of an Extruded 3D Body object.
Cylindrical The properties of this shape are defined in the 3D Body mode of the Properties panel.
Spherical The properties of this shape are defined in the 3D Body mode of the Properties panel.
The Properties panel in 3D Body mode provides an efficient way of editing properties, such as the color, of multiple 3D Body objects. Select the objects in either 2D or 3D Layout Mode, then press F11 (or click the Panels button down the bottom right of the design space) to display the Properties panel in 3D Body mode.

Extruded, Spherical, or Cylindrical 3D Body Object Placement

Direct Placement

Extruded, spherical, and cylindrical 3D Body objects are available for placement in both the PCB and PCB footprint editors by:

  • Choosing the Place » Extruded 3D Body command from the main menus.
  • Locating and using the Extruded 3D Body command () on the Active Bar.

In some situations, it is easier to place a 3D Body in 2D Layout Mode, in other situations it is easier to place one in 3D Layout Mode. At any time, the 2 and 3 shortcut keys can be used to switch back and forth between the two layout modes.

To place an extruded, spherical, or cylindrical 3D Body object:

  1. After launching the command, the cursor will change to a crosshair and you will be in the default placement mode, placing an Extruded 3D Body object.
  2. Press Tab to pause placement and display the Properties panel in 3D Body mode. The pause button overlay ( ) will appear in the design space, indicating that you can access the fields of the Properties panel.
  3. In the Properties panel, enter a name for the 3D Body in the Identifier field. This is optional; the Identifier can help when there are multiple 3D Bodies being placed and also can be used to target this 3D Body in a design rule if required.
  4. Select the required Board Side; typically this is set to Top. In the PCB library editor, the footprint is built for the top side of the board; it can be flipped to the bottom during the PCB design process if required.
  5. Select the mechanical Layer on which the 3D Body is to be placed. Component-type mechanical layers should be paired with a second mechanical layer so that if the component is flipped from the top side of the board to the bottom side, its mechanical detail, such as the 3D Body, will move to the paired mechanical layer. Mechanical layers are paired in the Layers and Colors tab of the View Configuration panel. Refer to the panel page for more information.
  6. Select the 3D Model Type from the available shapes: Extruded, Cylinder or Sphere.
  7. Each shape must have a defined size before it can be placed. If the chosen shape is:
    • Extruded – then define the Overall Height.
    • Cylinder – define the Height and Radius.
    • Sphere – define the Radius.
  8. In the Display region of the panel, click the Color button to set the color and adjust the Opacity as required.
  9. Once editing is complete, click the pause button overlay to return to the design space.
    • If the shape is a Cylinder or Sphere:
      1. The cursor will be moving in the design space with a rectangular shape attached; click to place the 3D Body.
      2. Right-click or press Esc to terminate 3D Body object placement.
    • If the shape is Extruded, the cursor will present, ready to define the polygonal base shape of the extruded 3D Body:
      1. Click to define the first vertex.
      2. Move the cursor ready to place the second vertex. The default behavior is to place two edges with each click, with a user-defined corner shape between them. Refer to the Extruded 3D Body Placement Modes section below to learn more.
      3. Continue to move the mouse and click to place further vertices.
      4. After placing the final vertex, right-click or press Esc to close and complete placement of the 3D Body. There is no need to manually close the 3D Body as the software will automatically complete the shape by connecting the start point to the final point placed.

Extruded 3D Body Placement Modes

While placing an extruded 3D Body 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.
  • 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 the second mode, the dashed edge is referred to as the look-ahead segment.
  • Press the Backspace key to remove the last vertex.
Press Shift+F1 during placement to display a list of available in-command shortcuts.

An extruded 3D Body object; note the reference point shown in the 2D and 3D views.
An extruded 3D Body object; note the reference point shown in the 2D and 3D views.

Creating from Closed Shapes

To accelerate the process of building up the component shape out of 3D Bodies, the software can create a series of extruded 3D Body objects based on closed shapes detected in the footprint. This feature can be helpful if the component has an unusual shape, which is already reflected in the shapes defined in the footprint's component overlay. You can also add additional objects into the footprint on mechanical layers, which you can then use to create additional 3D Body objects from, for example, to create the pins.

The images below show a TO-92 transistor footprint. From this, the outline drawn on the Top Overlay layer is used to define the transistor body on the chosen 3D Body layer pair (referred to as the Registration Layer in the dialog). There have also been three small squares created on a mechanical layer (each square made from four lines), which are used to define the component pins on the chosen 3D Body layer pair – the settings are shown in the dialog image below.

Existing objects in the footprint can be used to create new 3D Body objects. TO-92 transistor 3D model created from 3D Body objects, first image TO-92 transistor 3D model created from 3D Body objects, second image
Existing objects in the footprint can be used to create new 3D Body objects.

To create 3D Body objects from shapes in the footprint run the Tools » Manage 3D Bodies for Current Component command, the Component Body Manager dialog will open. Use it to see which 3D bodies are currently being used in the component, and which are not. Bodies can be added to and/or removed from, the component as required. Bodies can be of three distinct types:

  • A purposefully placed 3D Body (referred to as a Component Body in its description).
  • A rectangular shape automatically created by the software from a bounding rectangle.
  • An enclosed polygonal shape automatically created by the software from design primitives.

You can also modify other properties for a body, such as heights, body projection, registration layer, and color and opacity. Note that the Body State column shows four shapes are going to be used to create 3D Body objects.

Once the 3D bodies for the component have been defined as required, clicking the Close button will effect the changes.

The software can create 3D Body objects based on the shape of existing objects.
The software can create 3D Body objects based on the shape of existing objects.

Notes about using this dialog:

  • The detection algorithm will offer either: a rectangular shape created from the bounding rectangle, or a polygonal shape that follows the outline of the shape formed by the outline of the primitives (traced along the centerline of tracks/arcs, if their endpoints are coincident).
  • To create a 3D Body from an existing object, click the blue text in the Body State column.
  • The Overall Height defaults to the Height defined in the Properties panel for the footprint.
  • For a component pin that passes down through the board, set the Body Projection to Bottom Side.
  • The 3D Body objects are created when you click the Close button in the dialog. If the display is already set to 3D mode you might need to: refresh it (End shortcut), switch to 2D then back to 3D, or toggle the Show 3D Bodies option Off and On in the View Options tab of the View Configurations panel to see the new objects.
  • To edit 3D Bodies of all components in the active PCB footprint library currently opened in the PCB footprint editor, choose the Tools » Manage 3D Bodies for Library command from the main menus.
  • To edit 3D Bodies in the PCB editor using this dialog, you can access it by selecting the Tools » Manage 3D Bodies for Components on Board command from the main menus or by right-clicking a component and selecting Component Actions » Manage 3D Bodies from the context menu.
  • When the dialog is accessed using the Tools » Manage 3D Bodies for Components on Board command (in the PCB editor) or the Tools » Manage 3D Bodies for Library command (PCB footprint editor), the Components region will be available at the top of the dialog. This region lists each component footprint in the active library (in the actual design, this would be a list of all components on the board). For each entry, designator (available on design side only), footprint name, height, and source library information is displayed.

    Also, an extra Batch Update tab will be available. This tab provides a facility for quickly adding 3D body objects to all or selected components, en masse. You can define search criteria for detecting and creating 3D bodies, and for defining 3D body properties. After defining all options for the batch process as required, click the Execute Batch Update button. The search will proceed for each component included in the process and, where a 3D body shape is detected and created, that body will be added to the component using the defined property criteria. In this mode, changes are applied upon execution of the batch update.

  • The dialog allows you to manage the 3D bodies for the component, all from a single location - negating the need to pop open the Properties panel for each 3D Body.

Creating from Selected Primitives

As well as interactively placing a 3D Body, they can also be created from a set of existing track, arc, and solid region objects that define a closed shape. This is an excellent choice when the model is simple. To define a 3D Body from an existing closed shape:

  1. Select all primitives that form the closed shape.
  2. Click Tools » Convert » Create 3D Body From selected primitives.

The 3D Body will be created from the closed boundary formed by the primitives on the Top Layer, regardless of the layer on which the selected tracks are located. This means you can define the shape on a mechanical layer. Note that the original selected primitives will still exist after the region has been created and will remain selected. The 3D Body's boundary follows the centerline of the bounding track objects and it is not selected.

As the Create 3D Body From selected primitives algorithm uses the centerline of the selected objects, it requires that the end and start locations of touching objects are exactly co-incident (at the same X, Y location). If this is not the case, a Confirm dialog will appear, giving the location where the algorithm failed and also providing the opportunity to instruct the algorithm to attempt to define the 3D Body from the edges of the objects instead. As long as the selected objects overlap slightly, this option should create a 3D Body with the edge of the 3D Body tracing the outer edge of the selected objects.

Graphical Editing

The graphical method of editing allows you to select a placed 3D body object directly in the design space and change its size, shape, or location graphically.

Note that sphere and cylinder 3D body types can only be moved in the design space. They cannot be modified graphically with respect to their size or shape.

For an extruded 3D body, click once on the object to select it, which puts it into edit mode. The outer shape of the 3D body object is defined by a series of edges: where each edge is represented by an end vertex at each end, shown as a solid white square (A in the image below); and a center vertex in the middle, shown as a hollow white square (B in the image below). Each end vertex represents the location where two edges meet.

Standard polygonal shape editing techniques are available for editing the shape.

When editing a polygonal object, there are three editing modes available, Slide/Miter, Incurvate (arc) and Move. The current mode can be changed while dragging a vertex or an edge by pressing Shift+Spacebar to cycle through the 3 modes.

  • Slide/Miter – click and hold on an edge or a center vertex to slide that edge; click and hold on an end vertex to miter the corner.
  • Incurvate – click and hold on an edge or a center vertex to incurvate that edge; click and hold on an end vertex to incurvate (arc miter) the corner.
  • Move – click and hold on an edge or a center vertex to break that edge into two edges; click and hold on an end vertex to freely move that corner.
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.

During editing, you can also:

  • Ctrl+click and hold anywhere along an edge away from editing handles to insert a new vertex.
  • To remove a vertex, click and hold on the vertex then press the Delete key.
  • Click anywhere on the 3D body away from editing handles then drag to reposition it. While dragging, the 3D body can be rotated or mirrored:
    • Press the Spacebar to rotate the 3D body counterclockwise or Shift+Spacebar for clockwise rotation. The Rotation Step size is defined on the PCB Editor – General page of the Preferences dialog.
    • Press the X or Y keys to mirror the 3D body along the X-axis or Y-axis.

The Extruded and Cylinder 3D Body shapes cannot be rotated around all three axes. For example, an Extruded object can only be rotated around the Z-axis (looking down into the object), and a Cylindrical object can be rotated around the Y and Z axes. If an object needs to be rotated around another axis, it can be converted to a STEP object - see the Converting to STEP section below.

Converting to STEP

A selected Extruded/Cylindrical/Spherical 3D Body object to a STEP model. The STEP model is automatically embedded in the design file. To convert a free 3D Body object, select it in the design space then right-click and choose the Convert To STEP command from the context menu. The command will not be available if there is no object selected, or if there is more than one object selected. Once an object has been converted to STEP, it can no longer be re-sized in the design space.

Convert an extruded shape to STEP if you need to rotate it around the X or Y axes.
Convert an extruded shape to STEP if you need to rotate it around the X or Y axes.

Reference Point of an Extruded, Spherical, or Cylindrical 3D Body object

An extruded, spherical, or cylindrical 3D Body object has a reference point or origin.

  • For a cylinder and sphere, the reference is the center point of the object's circular shape on the X-Y plane.
  • For an extruded object, the reference is set to the location X-length/2, Y-length/2 when viewed from above.
  • It is the position of this reference point in the design space that is shown in the X/Y Location in the Properties panel.

Extruded, spherical and cylindrical 3D Body objects have a reference point, as shown in the images. Note that the reference point lines are not long so they may not appear outside the object.
Extruded, spherical and cylindrical 3D Body objects have a reference point, as shown in the images. Note that the reference point lines are not long so they may not appear outside the object.

Including a Texture on an Extruded 3D Body

Extruded objects also can include an image overlayed on the uppermost surface - facilitating greater realism of your board when viewed in 3D. When a Texture File is added, it is automatically stretched to fit to cover the entire upper surface of the 3D body, as shown in the image below. Note that the texture file is linked to the Library or Board file.

Supported Texture File formats include: *.bmp; *.dds; *.dib; *.hdr; *.jpg; *.pfm; *.png; *.ppm; and *.tga.

A texture or logo can be added to an extruded 3D Body object.
A texture or logo can be added to an extruded 3D Body object.

This can be adjusted by altering the Center location, Size and Rotation settings in the 3D Body mode of the Properties panel.

You can also modify the position of a texture object associated with a chosen extruded 3D model by choosing the Tools » 3D Body Placement » Move Texture Location command from the main menus when the editor is configured in 3D Layout Mode. After launching the command, the cursor will change to blue cones (signifying 3D selection mode) and you will be prompted to select an extruded 3D Body that has a texture associated. Position the cursor over the required 3D Body then click or press Enter. Click or press Enter a second time to 'pick up' the texture by its nearest corner. Move the texture to the required position then click or press Enter to effect placement. The standard additional actions for object movement (Spacebar/Shift+Spacebar to rotate, X or Y to mirror, arrow keys to nudge the texture) can be performed during movement while the texture is still floating on the cursor.

Alternatively, you can move the texture in a selected extruded 3D Body using the mouse to click-and-drag.

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.

软件的功能取决于您购买的Altium产品级别。您可以比较Altium Designer软件订阅的各个级别中包含的功能,以及通过Altium 365平台提供的应用程序所能实现的功能。

如果您在软件中找不到某个讨论过的功能,请联系Altium销售团队以获取更多信息。

Content