PDA

View Full Version : DualClipping: two ortho slices clipping a volume in a synchronized manner


ShawnZhang
10th October 2008, 18:26
Upon a customer request,

" I would like to know how to link two clipping planes so they can be moved together with a set spacing between the planes. I am trying to view a fixed number of slices in a Voltex solid where the number of slices correspond to the distance set between the two clipping planes. I would like to move both planes simultaneously in the same direction, keeping their separation fixed."

Although this can be achieved with defining a ROI module and link it to Voltex module (Demonstrated in the pool area captured by the snapshot picture attached), the attached script is developed to demonstrate how this can be achieved.

Usage,

1. Create two OrthoSlices, space them and set the desired the clipping for each of them.
2. Load script module "DualClipping.scro".
3. Connect port "MasterSlice" to the OrthoSlice that controls the dual clipping, i.e., the left slice.
4. Connect port "SlaveSlice" the the other OrthoSlice.
5. Set slice spacing in DualClipping module.
5. Go back to the OrthoSlice connected to "MasterSlice" port, and slide slice number. Alternatively, drag it in the 3D viewer.

Note the interaction with the OrthoSlice connected to the SlaveSlice port is disabled.

Please see the attached snapshot.

Todos,

1. Support other modules with a clipping capability, e.g., SurfaceCut.
2. Automatically determine the clipping of the OrthoSlice, instead of asking user to pre-define them.
3. Automatically determine the range of spacing, currently fixed.

pwestenb
13th October 2008, 08:45
Hi Shawn,

cool tool ;-)

Could you add:
# Amira-Script-Object V3.0

as header?

Cheers
Peter