Detect the collosion of models, and change model outlook realtime

Hi:
Thanks for your reading. There are a question confused me, there are a femur model, and probe model. I control the probe to grind the femur. I can capture the collision caused by probe and femur. BUT I want to change the femur model outlook realtime. JUSH LIKE BELOW PICTURE
Screenshot from 2021-09-29 22-45-23
the white part is femur bone, and the green part is grinded region, if the probe model contacts the green part, the triangle cell will be change, the green part will disappear gradually.

how can i implement this effect?

We implement this over at iMSTK (which uses VTK). And coincidently even do erosion on a femur bone. See this example. We use a chunking approach to do it at super fast rates (>1000hz).

Here’s an old Blog Post With Femur Bone Erosion: iMSTK 4.0 Released - Kitware Blog

1 Like

Thanks a lot!! That’s what i want effect , i will read this now

i want to run the example: FemurCut , so i install the openhaptics and geomagic_touch_device_driver, in the “/opt/openhaptics” and “opt/geomagic_touch_device_driver”, then i change cmake variable “iMSTK_USE_OpenHaptics” to “ON” and run cmake …/iMSTK. The terminal print error “cant find openHaptics”


how can i fix that? Thanks for your help!

my os is ubuntu 18.04, Is this os can support external package: OpenHaptics ? I found the codes in External_OpenHaptics.cmake file.

We don’t support OpenHaptics on Linux, only on Windows. Though if you wanted to contribute any code to iMSTK to get it working on Linux feel free to submit an MR. But for further discussion and iMSTK related question, please post this over on the imstk forums.

Also FindOpenHaptics.cmake searches for OpenHaptics via a system variable that is created by the installer when installing open haptics (OH_SDK_BASE).

Thanks a lot, Can you simply describe the method to implement below example? lsmCutting