-
Beta Was this translation helpful? Give feedback.
Answered by
user27182
May 10, 2024
Replies: 2 comments 2 replies
-
Assuming those circles are disconnect from other edges, after extracting the edges, try applying the connectivity filter to label disjoint boundary loops and extract them by their |
Beta Was this translation helpful? Give feedback.
2 replies
-
in addition to @user27182's excellent suggestions I would also suggest trying extract feature edges. Since the circular parts meet the flat parts at 90 degree angles, that should be able to isolate the circles as disconnected loops. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 …