You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the beginning of the implementation of the mesh edit map tool. For now this map tool allow:
Add vertices
double clicks on a face : add a vertex in the face, remove the face and replace it by triangles from the surrounding vertices to the new vertex
double clicks outside a face: add a "free vertex", that is a vertex not link to any face. This vertex is represented by a red dot when the layer is in editing mode
The Z value of the new vertex is taken from the Z value widget on the top right of the canvas.
If some vertices are selected, the value in the Z value widget is the average value of selected vertices.
Deselecting the vertices allows returning to the default value.
If the user adds a vertex with selected vertices (with the average value in the widget), the new vertex will have this average value for Z.
Keeping pressed the Control key allows maintaining this average value for following new vertices, and this value becomes the new default value.
If there is no selected vertex, the Z value for new vertices is the default one in the Z value widget, or if the new vertex is added to face, the Z value is the interpolated value in the face.
If the vertex is snap on a vector layer and the match point is valid, the Z value will be one of the vector layers.
Add faces
Left click on the little triangle that appears when the mouse is on a boundary vertex or a free vertex start adding a face.
The user has to left click on existing vertex to select the vertex of the new face.
Double clicks when digitizing a face add a vertices under the mouse and add it to the face.
Backspace remove the last selected vertex from the face.
If the area of the rubber band is green, right click valid the face and add it to the mesh. If red, the current face is not valid and can't be added.
Snapping on vector layer is supported.
Select vertices/faces
click on a vertex: select one vertex
click on the red box in the face centroid: select all the vertices of a face
select vertices by dragging rectangle:
- Default: select all the partially/touched contained faces
- Alt modifier: select all the completely contained faces
modifier shift: add new selection to the previous selection
modifier ctrl: remove new selection from the previous selection
Remove vertices/faces
With a selection of vertices (one or many):
"Ctrl"+"Delete" keys: remove vertices and linked faces and fill hole(s) by a triangulation
"Ctrl"+"Shift"+"Delete" keys: remove vertices and linked faces and do NOT fill hole(s)
"Shift"+"Delete" keys: remove faces without vertices
also available with context menu after right click
Change the Z values of vertices
select one or many vertices
change the value in the Z value widget,
press "Enter" key
Move vertices
Once some vertices/faces are selected:
Press left mouse button on selected vertex, or on the red box in middle of selected faces or edges (faces or edges are selected if all their vertices are selected)
hold the button press and drag the mouse cursor
release when he moved elements are in a desired position
The rubber band stays green while the faces are valid, and becomes red if some face are invalid or new position of faces leads to intersect other faces or vertices. If the rubber band is red, elements are not moved if the user release the left mouse button.
Interaction with edges
When the mouse hover an edge, the edge is highlight and, depending of the configuration of the edge, some markers appears:
a box, clicking on it leads to select extremity vertices.
a cross if the two faces on either side can be merged, clicking on it leads to merge the faces.
a circle if the edge can be flip, clicking on it leads to flip the edge
Split faces
When faces are selected:
right click, if there are one or more quad faces, the context menu has a command "Split faces"
Commits tagged with [need-docs] or [FEATURE]
The text was updated successfully, but these errors were encountered:
Request for documentation
From pull request qgis/QGIS#44037
Author: @vcloarec
QGIS version: 3.22
** [mesh] mesh frame editing part 3 - Edit mesh map tool**
PR Description:
UPDATED 2021/08/17
This is the beginning of the implementation of the mesh edit map tool. For now this map tool allow:
Add vertices
The Z value of the new vertex is taken from the Z value widget on the top right of the canvas.
If some vertices are selected, the value in the Z value widget is the average value of selected vertices.
Deselecting the vertices allows returning to the default value.
If the user adds a vertex with selected vertices (with the average value in the widget), the new vertex will have this average value for Z.
Keeping pressed the Control key allows maintaining this average value for following new vertices, and this value becomes the new default value.
If there is no selected vertex, the Z value for new vertices is the default one in the Z value widget, or if the new vertex is added to face, the Z value is the interpolated value in the face.
If the vertex is snap on a vector layer and the match point is valid, the Z value will be one of the vector layers.
Add faces
Snapping on vector layer is supported.
Select vertices/faces
- Default: select all the partially/touched contained faces
- Alt modifier: select all the completely contained faces
modifier shift: add new selection to the previous selection
modifier ctrl: remove new selection from the previous selection
Remove vertices/faces
With a selection of vertices (one or many):
"Ctrl"+"Delete" keys: remove vertices and linked faces and fill hole(s) by a triangulation
"Ctrl"+"Shift"+"Delete" keys: remove vertices and linked faces and do NOT fill hole(s)
"Shift"+"Delete" keys: remove faces without vertices
also available with context menu after right click
Change the Z values of vertices
Move vertices
Once some vertices/faces are selected:
The rubber band stays green while the faces are valid, and becomes red if some face are invalid or new position of faces leads to intersect other faces or vertices. If the rubber band is red, elements are not moved if the user release the left mouse button.
Interaction with edges
When the mouse hover an edge, the edge is highlight and, depending of the configuration of the edge, some markers appears:
Split faces
When faces are selected:
Commits tagged with [need-docs] or [FEATURE]
The text was updated successfully, but these errors were encountered: