# Make Region Generation based on a STL actor

**URL:** https://discourse.vtk.org/t/make-region-generation-based-on-a-stl-actor/15213
**Category:** Support
**Tags:** code
**Created:** [January 27, 2025, 8:03am UTC](https://discourse.vtk.org/t/make-region-generation-based-on-a-stl-actor/15213 "2025-01-27T08:03:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![christeen](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@christeen](https://discourse.vtk.org/u/christeen)
#### Post date: [January 27, 2025, 8:03am UTC](https://discourse.vtk.org/t/make-region-generation-based-on-a-stl-actor/15213/1 "2025-01-27T08:03:02Z")

</div>

I want to make region growth like as like the following image…I want to exclude the portion of the hollow region of the sleeve STL for the region growing and

![image](https://discourse.vtk.org/uploads/default/original/2X/9/9135de712fb3df87f6f6162669b0d87cff24483a.jpeg)

and I would be like to clip the some portions exactly as per picture given below by considering the sleeve stl and the vtkBox for the clipping operation…

 ![image](https://discourse.vtk.org/uploads/default/original/2X/5/5fa3122d73d317f286e8d0928ce96d1c524b5e4c.jpeg)

How can able to consider these operations using VTK 8.2 with cpp…Currently I done region growing using vtkCleanPolyData(input polydata as STLactor and loop as contourwidget) to clipping procedure for region growing…Now I want to thicken the region grown area and clip some of the portions as accurate…Which is the best choice for that…vtkpolydata / mesh or any other methods…

 ![image](https://discourse.vtk.org/uploads/default/original/2X/0/0c6c3ce5696c793043cf967971142dacd2c56ab3.jpeg)

and the region growing should be filled the entire region where I drawn the contour except the inner hollow portions of the STL sleeve [Here I used to introduced a cylinder to remove the region by considering the radius of sleeve…But I cannot able to remove those portions properly…]

 ![image](https://discourse.vtk.org/uploads/default/original/2X/6/617f11ee91dc3709d7a2e6e73c64d5bdf63bf885.jpeg)

[![](https://discourse.vtk.org/uploads/default/original/2X/c/c69b2c493d8a9a4a1d4ac25371ee3202dd78aab1.jpeg "BSP 4.8 New Surgical Guide Path of Insertion Functionality") ](https://www.youtube.com/watch?v=uPRPAAMDu3Y)

I have to improve the requirement…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.
