[vtkusers] Correct use of vtkClipVolume in volume rendering?

Wheeler, Gavin gavin.wheeler at kcl.ac.uk
Thu Oct 25 07:05:03 EDT 2018


Hi Severin,

We are using cropping planes successfully - so they can be made to work. 

We set up our clipping plane in the same way, and similarly set the origin (and normal). So as the code looks OK, perhaps it is a problem with some of the values?

For investigating cropping planes we found modifying the "GPURenderDemo" example a helpful way of getting things working. We would make it work interactively there and then check/hard code the values in our application to achieve the same result and then work from there.

There is definitely a learning curve to VTK, so I hope you get it working soon.

Gavin

-----Original Message-----
From: vtkusers <vtkusers-bounces at public.kitware.com> On Behalf Of SevPuch
Sent: 09 October 2018 09:10
To: vtkusers at vtk.org
Subject: [vtkusers] Correct use of vtkClipVolume in volume rendering?

Hi everyone,

It is indeed a basic question but I've striven to find any example or explanation in the mailing list or forum or stack overflow concerning this. 

I have a .mhd file that I render in volume following the medical volume rendering example.

I'd like to implement volume exploration for this, so I think about using a plane (then spheres etc.) to clip the volume. 
But my following code has no effect, and I guess I need to use vtkClipVolume, but there zero information about how to use it in the documentation.

  Code :
//Plane clipping
vtkSmartPointer<vtkPlane> cuttingPlane =
  vtkSmartPointer<vtkPlane>::New();
cuttingPlane->SetOrigin(0, 0, 0);

volumeMapper->AddClippingPlane(cuttingPlane);


Thank you very much for your help,
I find learning VTK is drastically slowed down because of missing information.
Severin



--
Sent from: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=XhMaaYNcbNcW4MvUDSDjyojPBqaUUjfoeWEryKI6VJI%3D&reserved=0
_______________________________________________
Powered by https://emea01.safelinks.protection.outlook.com/?url=www.kitware.com&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=kjnypF7J88VtaakhAikYrtW%2FA9bt0hy1BUqqYejWMfo%3D&reserved=0

Visit other Kitware open-source projects at https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=x87wV%2Bej9%2FN9CLfsRmnGeWnjxjD95e95gOARzp%2FareM%3D&reserved=0

Please keep messages on-topic and check the VTK FAQ at: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=SiEh7reA2jF%2BtPdry9wr2MHfP%2Ff4fgZKanJnd4C9rXE%3D&reserved=0

Search the list archives at: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=YKAFOZhM7IIefqnJn%2FxLw855S%2B3j9nEdvh2RKKX2ZoU%3D&reserved=0

Follow this link to subscribe/unsubscribe:
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=01%7C01%7Cgavin.wheeler%40kcl.ac.uk%7C2497f878dd304046ddf108d62dbe9a70%7C8370cf1416f34c16b83c724071654356%7C0&sdata=oLMS0FDSFjUXhLAaAaVQO2S5LXhUK1GlkiMGLB%2B8bqo%3D&reserved=0


More information about the vtkusers mailing list