-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mesh] mesh frame editing part 3 - Advanced editing #44169
Conversation
f3ccc59
to
65f10b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I have a question for "advanced" editing tools? I am wondering if there are any other advanced editing tools coming ?
| QgsMeshTriangulation triangulation; | ||
|
|
||
| QVector<int> triangulationVertexToMeshVertex( vertexIndextoTriangulate.count() ); | ||
| const QgsMesh destinationMesh = *meshEditor->topologicalMesh()->mesh(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is const, cannot we just use pointer here and do not dereference it?
Yes, there are surely some other that coming, but later, not in this PR. A least, I think about the force mesh by a polyline, and maybe modify by expression. |
1ebf988
to
04ad91a
Compare
41263cc
to
c2eccd7
Compare
|
It would be good to not use force-push git commit (only when rebasing from master) since it makes reviews harder... |
[mesh] [feature] Delaunay triangulation and face refinement for advanced mesh editing tools
This PR is in the scope of qgis/QGIS-Enhancement-Proposals#228
API:
Here, advanced editing is introduced by a new interface abstract class QgsMeshAdvancedEditing.
Derived classes of this class can be implemented to make some advanced editing on a mesh: generation of faces to add to the mesh, particular operation on many faces or vertices.
The advanced editing is made by passing a QgsMeshAdvancedEditing instance to a QgsmeshEditor instance, and the editing is applied as other editing operations.
In this PR, two advanced editings are implemented:
User interface in QGIS:
Delaunay triangulation and face refinement are accessible from the context menu in the map when vertices or/and faces are selected. Later, when other tools will be implemented, maybe these actions could be called from buttons in the mesh toolbar.