DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage3D Class / DistanceToFarVertex Method
Selects which direction to look.
Example

In This Topic
    DistanceToFarVertex Method
    In This Topic
    Find distance to the furthest vertex of the volume
    Syntax
    'Declaration
     
    
    Public Function DistanceToFarVertex( _
       ByVal Forward As System.Boolean _
    ) As System.Single
    public System.float DistanceToFarVertex( 
       System.bool Forward
    )

    Parameters

    Forward
    Selects which direction to look.

    Return Value

    distance to the verex in mm
    Remarks

    The measurement is from the current view plane.

    If Forward is true, then the distance is that from the current plane to the vertex furthest "into the screen" (reached by calling TranslateNormal with a positive value)

    If Forward is false, then the distance is that from the current plane to the vertex furthest "out of the screen" (reached by calling TranslateNormal with a negative value)

    If the current plane intersects the volume, then both the forward and backward values will be positive.

    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm");
    DicomVolume volume = new DicomVolume(image);
                        
    RenderMode3D renderMode = RenderMode3D.MPR;
    DicomImage3D image3D = new DicomImage3D(volume, renderMode);
                        
    bool forward = true;
    var distance = image3D.DistanceToFarVertex(true);
    Viewer.Images.Add(image3D);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also