A module with a 3d viewer. More...
The 3d build from a 2d layout is reached as layout->view3dTool, a view3dModule. extrude, extrudeSlant and extrudeCurved take a source (a layer number, -1 for the last Boolean result, -2 for the selection, -3 for the whole cell) and absolute z bounds; extrudeCurrentCell, extrudeCurrentSelection and extrudeCurrentView use z values from the Layer Manager. deposit, depositFill and depositSetLevel stack material on the surface left by earlier deposits; depositReset clears that surface. loadProcessRecipe, saveProcessRecipe and runProcess drive the Process tab. syncUnits and syncView match the 3d window to the 2d drawing. Obsolete blockToModel members belong to older releases.
Example:
layout->view3dTool->syncUnits();
layout->view3dTool->depositReset();
layout->view3dTool->extrudeCurrentCell();
layout->view3dTool->syncView();
Clears the surface remembered from earlier deposit calls.
Extrudes source onto the surface left by earlier deposits (shapes from extrude do not move that surface). invert inverts the source. thickness is the deposited height. A positive destLayer takes colour from that layer. edgeCover is a relative sidewall cover.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| invert | true to invert the source |
| thickness | deposit thickness |
| destLayer | colour/layer in the 3d view; unused if negative |
| edgeCover | relative edge cover |
similar to the deposit command, however not a constant thickness will be created but any surface lower the entered level will be filled to this level.
| Parameter: | |
|---|---|
| soucre | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| invert | true to invert the source |
| toLevel | target z level |
| destLayer | colour/layer in the 3d view; unused if negative |
similar to the depositFill command, however no shapes will be output to the 3d window. Only the surface for following depositions will be adjusted.
| Parameter: | |
|---|---|
| soucre | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| invert | true to invert the source |
| toLevel | target z level |
Source shapes all be added and extruded to the layout3d. bottomLevel and topLevel are the z-values. If source is positive it is uses the correspondent layer. A '-1' will use shapes from a previous boolean operation, '-2' will use selected shapes and '-3' will use all shapes of the cell. destLayer if positive will use the layer color of that layer in the layout3d.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| bottomLevel | lower z value |
| topLevel | upper z value |
| destLayer | colour/layer in the 3d view; unused if negative |
The current cell of the layout view will be added to the layout3d with z-values from the LayerManager.
The current selection of the layout view will be added to the layout3d with z-values from the LayerManager.
The current layout view will be added to the layout3d with z-values from the LayerManager.
An extrude with slant edges. parameter as identical to the extrude method.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| bottomLevel | lower z value |
| topLevel | upper z value |
| extensionBottom | bottom slant extension |
| extensionTop | top slant extension |
| destLayer | colour/layer in the 3d view; unused if negative |
Source shapes all be added and extruded to the layout3d. edge describes the edge curve of the extrusion. If source is positive it is uses the correspondent layer. A '-1' will use shapes from a previous boolean operation, '-2' will use selected shapes and '-3' will use all shapes of the cell. destLayer if positive will use the layer color of that layer in the layout3d.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| edge | edge curve |
| destLayer | colour/layer in the 3d view; unused if negative |
Text element on the source will be used as model file name for the 3d layout. The model will be added as the text element position on the zLevel. An addition rotation like 'rx180' or 'ry90' can be added. The source parameter is identical to the extrude method.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| zLevel | z position |
| rotation | extra rotation such as rx180 |
Shapes on the source will be rotated around the Y-axis. angle is the rotation angle and spiral parameter will make a sprale from the shape. All other parameter are identical to the extrude method.
| Parameter: | |
|---|---|
| source | layer number, or -1 last Boolean, -2 selection, -3 whole cell |
| angle | angle in degrees |
| spiral | spiral offset; 0 is a plain rotation |
| destLayer | colour/layer in the 3d view; unused if negative |
Databaseunits and userunits of the layout3d window will be set identical to the layout window. The physical size of the layout3d design is unchanged, the database value of the mesh objects will be adjusted.
The view perspective of the layout window and the layout3d window will be made identical.
Loads a Process-tab recipe JSON file. The document is {"steps":[...]} (or a bare step array). Lengths are database units.
Writes the current Process-tab recipe to JSON.
Runs all enabled Process-tab steps into the current 3D cell.
Obsolete
| Parameter: | |
|---|---|
| sourceLayer | source layer; -1 is the last Boolean result |
| destLayer | colour/layer in the 3d view; unused if negative |
| lower | lower z |
| upper | upper z |
Adds the sourcelayer as a block to the model. If sourceLayer equals -1 the result of the last boolean operation is used. lower and upper are the height level of the block. The color setup of the destLayer will be used.
Obsolete
| Parameter: | |
|---|---|
| sourceLayer | source layer; -1 is the last Boolean result |
| destLayer | colour/layer in the 3d view; unused if negative |
| upper | upper z |
| radius | radius in database units |
| steps | number of rounding steps |
Adds the sourceLayer as a block to the model. All edges at the bottom will have a radius. If sourceLayer equals -1 the result of the last boolean operation is used. lower and upper are the height level of the block. The color setup of the destLayer will be used.
Obsolete
Beside the simple 3d display which uses a level and a hight for each layer and display all struktures as a block there is a alternative way to enable a 3d display. Here a model is used. You had to add all 3d elements to an model and trigger its display via a macro. This method enables more eventualities in the 3d display. You can define implicit boolean operation and you can generate non verticality geometries. Before to start defining a model clear a model with this method. After defining the model with commands like block to model,... trigger a rendering
Obsolete
Saves the current 3d model to a dxf file. Only the mesh is stored; the view (angle and magnification) is ignored. User units become DXF units.
Obsolete
Loads a 3d dxf file into the 3d window. Layers with matching names are mapped; unknown layers go to layer 0. Only visible layers are shown. The 2d window’s current view is used as the starting camera, so open and scale-full the layout first.
Obsolete
| Parameter: | |
|---|---|
| sourceLayer | source layer; -1 is the last Boolean result |
| destLayer | colour/layer in the 3d view; unused if negative |
| lower | lower z |
| upper | upper z |
| topextension | top slant extension |
| bottomextension | bottom slant extension |
Adds the sourceLayer to the model. If sourceLayer equals -1 the result of the last boolean operation is used. The color setup of the destLayer will be used.
Obsolete
| Parameter: | |
|---|---|
| sourceLayer | source layer; -1 is the last Boolean result |
| destLayer | colour/layer in the 3d view; unused if negative |
| lower | lower z |
| radius | radius in database units |
| steps | number of rounding steps |
Adds the sourceLayer as a block to the model. All edges at the top will have a radius. If sourceLayer equals -1 the result of the last boolean operation is used. lower and upper are the height level of the block. The color setup of the destLayer will be used.
Obsolete
renderAll will be called after the macro terminates or the user interface is updated.
Obsolete
renderSelect will be called after the macro terminates or the user interface is updated.
Obsolete
renderView will be called after the macro terminates or the user interface is updated.
Obsolete
renderAuto will be called after the macro terminates or the user interface is updated.
Obsolete
renderModel will be called after the macro terminates or the user interface is updated.