Skip to content

Extract specific edges (e.g. only those of circles or straight lines) #6053

Answered by user27182
piw-bot asked this question in Q&A
Discussion options

You must be logged in to vote

This is similar to an edge detection / feature extraction problem. This is common in computer vision tasks and is not trivial to do. If the input was image data, you could use something like the Hough transform to extract lines and circles (this is just an example, there are no vtk/pyvista methods that implement the Hough transform as far as I know, and your input is not image data anyway).

For this mesh, what features of the circles and lines make them distinct from other parts of the mesh? Well, the circle bits are curved and the flat bits are not. So the curvature filter may help extract the curved (circle) features.

Have a look at the bottom of the connectivy examples linked by @darikg

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@piw-bot
Comment options

@user27182
Comment options

Answer selected by piw-bot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants