-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Map tool idenfify: Add support for index in mesh data #60896
base: master
Are you sure you want to change the base?
Conversation
d595836
to
d522b8a
Compare
This is a generalization of `snapOnElement`, since it allows to also get the element (face, vertex or edge) index.
This is achieved by using `QgsMeshLayer::closestElement()` instead of `QgsMeshLayer::snapOnElement()`.
d522b8a
to
3259f79
Compare
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
* | ||
* \since QGIS 3.44 | ||
*/ | ||
int closestElement( QgsMesh::ElementType elementType, const QgsPointXY &point, double searchRadius, QgsPointXY &projectedPoint ) const; |
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.
int closestElement( QgsMesh::ElementType elementType, const QgsPointXY &point, double searchRadius, QgsPointXY &projectedPoint ) const; | |
int closestElement( QgsMesh::ElementType elementType, const QgsPointXY &point, double searchRadius, QgsPointXY &projectedPoint SIP_OUT ) const; |
@@ -925,38 +926,16 @@ int QgsMeshLayer::closestEdge( const QgsPointXY &point, double searchRadius, Qgs | |||
return selectedIndex; | |||
} | |||
|
|||
QgsMeshDatasetIndex QgsMeshLayer::staticVectorDatasetIndex( int group ) const |
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.
Why move this code? It clutters the diff here, and will make git blame a bit more frustrating...
Description
This extends the identify tool to also display the index of a vertex/face/edge of a mesh.
See, the screenshot below: