Simplifying 3D coordinate geometry in v7
All 3D calculations in DicomObjects are almost entirely in “real world” coordinated (patient X,Y,Z in mm). We have implemented a few dedicated methods to help you manipulate your 3D object or the ones that are displayed. A newly added method is DicomImage.ImagePlane() which returns an Image's plane in Plane3D form that can be used for other calculation (in real world units again), say the intersection of two Image planes, or to offset one of them by the slab thickness and to calculate that intersection, etc.
All calculations are done in real world 3D space (for consistency and simplicity) and then any point (the result) can be translated to Viewer/screen space using Image.WorldToScreen() method. Once you have them in screen units, you can manipulate it in any way you like, such as adding perpendicular end-markers or other precise adjustments that you wish to have.
As an example, given below is our C# code snippet that we use to add reference lines from “RefImage” onto an DicomImage :