visualdynamics.gui.mesh_solids_panel¶
mesh_solids_panel
¶
Mesh Solids, as a pane beside the 3-D view.
It follows select, see, set, apply (principle 13). The parts are picked
in the tree, the bricks they would be meshed into are drawn in the view
as the element size is typed, the pane says what that size makes, and
Mesh runs the project's mesh_solids. Keep apart joins the bricks only
to nodes of their own element groups (mesh.join), so a
part meshed beside another keeps its own nodes where they touch, to be
merged later at the places picked. With two or more parts, Keep the
parts apart from each other meshes them on one grid with each part
keeping its own nodes where the parts touch. A union that is no
extrusion is meshed in pieces, and then the size is one per piece, in
a table in place of the box: each piece's row takes its own, and
Detect Element Size fills every row.
The elements are Hexes, Tetras, or shells: Shells (quads) and Shells (triangles), meshed on a plate's or a disk's plane and on the outer surface of a solid with a volume. A plate or a disk among the parts takes shells only, so only they are offered then.
The pane holds no rules of its own: the window asks core.solids what
the size makes, draws it, and shows the result here.
Classes:
| Name | Description |
|---|---|
MeshSolidsPanel |
The element size, what it makes, and the Mesh button. |
Classes¶
MeshSolidsPanel
¶
Bases: QWidget
The element size, what it makes, and the Mesh button.
Methods:
| Name | Description |
|---|---|
open_for |
Set the pane up: the size in the display unit |
set_pieces |
Show a size per piece, |
piece_sizes |
Each piece's size as typed, by solid id. |
Attributes:
| Name | Type | Description |
|---|---|---|
element_kind |
str
|
'hexes', 'tetras', 'quads' or 'triangles', as picked. |
piece_ids |
list[int]
|
The pieces shown, by solid id; empty with the one box. |
Source code in src/visualdynamics/gui/mesh_solids_panel.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
Attributes¶
Methods:¶
open_for
¶
Set the pane up: the size in the display unit unit, parts
naming the parts it meshes, and count, how many there are.
Both Keep apart boxes are cleared, and the second is shown only
for two or more parts meshed into bricks; the elements are
bricks again. With flat, a plate or a disk among the parts,
only shells are offered, quads first.
Source code in src/visualdynamics/gui/mesh_solids_panel.py
set_pieces
¶
Show a size per piece, rows being (solid id, name, size)
in the display unit, in place of the one box; None puts the box
back.
Source code in src/visualdynamics/gui/mesh_solids_panel.py
piece_sizes
¶
Each piece's size as typed, by solid id.