I used the vtkPolygonalSurfacePointPlacer and vtkPolygonalSurfaceContourLineInterpolator to draw a contour over the surface of an actor using vtkContourWidget. Now, I want to extract the upper portion of the contour on the STLactor and apply a region growing effect similar to the following:
I am looking for guidance on how to proceed with this development, as I am new to this area. Your support in helping me achieve this would be greatly appreciated. I’m currently using VTK 8.2 and C++ for this task.
Thise feature is already implemented in 3D Slicer, which is a VTK-based open-source application, therefore you can take the full implementation from there:
Source code for curve cut tool:
Your experimentation with VTK is extremely valuable learning experience, but when it comes to building the software that you ship to your customers (researchers, dentists, etc.) then I would strongly recommend to move to a more full featured VTK-based medical application platform, such as 3D Slicer. This platform already provides all other essential features for a dental implant planning software, such as convenient DICOM browser, automatic AI dental segmentation tools, panoramic image reconstruction, curve and thick planar reformat views, integration with several surgical navigation systems, tool trackers, real-time imaging devices, etc. All these are available for completely free, without any restrictions, for any use, including using it as a basis for commercial, FDA-approved products. By building on a platform you save millions of dollars worth of software development and maintenance, so you can focus your efforts on things that make a difference (unique algorithms, ideas, workflows), not on redeveloping yet another DICOM browser or 2D/3D image viewer.
There is even a full dental implant planning suite implemented in 3D Slicer that you might potentially leverage if you have some VTK-based tools to deliver: