Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Using VTK I managed to slice a volume and get contours of three coronary blood vessels with vtkFeatureEdges.

Is there a VTK way of selecting one of these? What I'm after is a polyData with slice of one vessel only (somewhat similar to scipy label ). I could do this manually by recreating points connectivity from cells but maybe there is a ready-to-use filter that I don't know about?

I'm using Python bindings but I think C++ answer would be helpful too.

  • Use Connectivity filter to generate a RegionID array for each vessel
  • Use Edit->FindData to create a selection based on the RegionID array
  • use Extract Selection filter to extract it.
  • This is a ParaView answer as you tagged the question as ParaView. But all these filter and selection mechanism are available in VTK as well.

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .