I want to rotate a slice view such that the projection of a model in the 2d views is always in the specific orientation(e.g. vertical US probe in the attached image). The 3d model is controlled by several transformations and I simply want to generate the 2d slices based on the normal to the model(lets say z axis) and such that the slice view always appears to have the 2d projection vertical.
I wish to do this in a C++ based module preferably and not in python. How can I achieve this?
Apply a transform WorldToUsProbeModel to the model and the slice. If you want it to look vertical you just need to concatenate a transform to rotate your model (if your model frame default orientation is similar to world’s one)
Thanks, but I dont want to apply a transform to the model and the probe since it will change the slice data itself. I am getting the slice data based on the specific position of the probe(a subset of the existing ultrasound data at that position). Is there a way I can simple rotate the slice view without applying the transform? Hope am able to explain the situation…
If your problem is transforming the model because that will change the slicing, just clone the model, apply to it only the rotation transform, and to the slice view apply the transform I told you earlier. I think that should work. The only way you can move a plane (the sliceView) on the 3D View that I know of is by using a transform.