'qmsh' RETURN 'i'|'a'|'e'|'f'|'v'|'n'|'l'|'c'|'s'|'m'|'d'|'h'|'t'|'q'
A very usefull command to optimize surface meshes as a basis for
tet-meshes. Line divisions can be changed by selecting a line with the ``l'' key and then a number as
for qdiv. The mesh will be updated automatically.
Based on identified lines ``l'' or surfaces ``s'' meshes can be coarsened 't', refined 'h', deleted ``d'' and generated ``m''. Surfaces can be combined ``c'' to get rid of very small ones and splitted 'b'.
To change the mesh density along a line:
Example for a surface combination:
- Identify a line or several lines with key ``l''. The related surfaces are selected.
- The line division is changed by pressing the key with the desired number. This function of qmsh works like the ``qdiv'' command. The related surfaces are automatically re-meshed.
A surface (only without holes!) can be splitted by a crossing line:
- Identify a line with key ``l''. The related surfaces are selected.
- Or identify two adjacent surfaces with key ``s'' or by selecting two single elements ``e'' one for each surface. They must use the same lines at the junction.
- To combine the two selected surfaces press key ``c'' (Attention: The surface with the longer perimeter must reference a shape (a nurbs)). In the moment an automatic adaption of the embedded shape or nurbs is not done. The shape of the bigger surface is just used for the combined surface. It might be necessary to use a mapped mesh for the new surface if the embedded shape is too small ( use tr6 instead of tr6u, see elty or mshp).
To change the mesh density in a selected surface:
- First create the desired splitting line, for example with ``qlin''.
- Type ``qmsh'' and identify the line with key ``l''.
- Identify the surface with key ``s'' or by selecting a single element ``e''.
- Press key ``b'' to break (split) the surface in two. The previously selected line will be converted to a spline with as much control points as the line division. Then the line-points are projeted to the surface.
- Select one or more surfaces with key ``s'' or by selecting lines ``l'' or by selecting a single element ``e''.
- Press ``h'' (higher) to increase the mesh density or ``t'' (thinner) to decrease.
This keyword can be used to manually define elements. The key ``n'' selects nodes and the key ``f'' or ``v'' generate a surface or volume element based on the node-selection.
To catch more than one entity with one stroke, type ''a'' (all) at first. Then create a rectangular picking area by pressing two times the ''r'' key. Both strokes define opposite corners of the selection-rectangle. To catch only the entity which is closest to the user type ''i'' before.