visualdynamics.gui.mate_panel¶
mate_panel
¶
Mate Surfaces, as a pane beside the 3-D view.
It follows select, see, set, apply (principle 13). Two element groups or more are picked in the tree and Mate Surfaces opened on them: every patch where their surfaces mate is marked in the view, and listed here, one entry per connected patch. A patch is picked from the list, the side to pick nodes for is chosen, and a click on a node in the view adds it to that side or takes it away. Only that side's group's nodes are drawn, so coincident nodes of the two sides are told apart. The normal and the shear are each held rigidly, by a stiffness in the display units, or left free, every node in a frame of its own on the surface it lies on, and Keep adds the patch to the geometry's Mated Surfaces, where it can be picked, edited or deleted later. Opened from a set's row, the pane edits that set.
The pane holds no rules of its own: the window asks core.mates where
the surfaces mate, marks it, and shows the result here.
Classes:
| Name | Description |
|---|---|
MatePanel |
The patches, the side being picked, how the normal and the shear |
Classes¶
MatePanel
¶
Bases: QWidget
The patches, the side being picked, how the normal and the shear are held and their stiffness, a name, what the patch makes, and Keep.
Methods:
| Name | Description |
|---|---|
open_for |
Set the pane up on the element groups named |
set_patches |
The patches to pick from, each row's text, |
picked_patches |
The patches picked, by row, in the list's order. |
current_patch |
The patch whose nodes a click changes: the one picked, or the |
set_sides |
The side buttons named for the current patch's groups. |
value |
The tolerance as typed, in the display unit. |
Attributes:
| Name | Type | Description |
|---|---|---|
side |
str
|
'a' or 'b': the side a click on a node changes. |
normal_held |
str
|
'rigid', 'stiffness' or 'free', as picked for the normal. |
shear_held |
str
|
'rigid', 'stiffness' or 'free', as picked for the shear. |
Source code in src/visualdynamics/gui/mate_panel.py
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 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | |
Attributes¶
Methods:¶
open_for
¶
open_for(groups: str, unit: str, tolerance: float | None, stiffness_unit: str, normal: float, shear: float, normal_mode: str = 'rigid', shear_mode: str = 'rigid', search: float = 0.0) -> None
Set the pane up on the element groups named groups: the
tolerance in the display unit unit, or None when a kept set is
being edited (there is nothing to find again), the distance a
node may be picked within, search, in the same unit, and the
stiffness boxes in stiffness_unit.
Source code in src/visualdynamics/gui/mate_panel.py
set_patches
¶
The patches to pick from, each row's text, current picked.
Source code in src/visualdynamics/gui/mate_panel.py
picked_patches
¶
current_patch
¶
The patch whose nodes a click changes: the one picked, or the list's current row among several picked; None with none.