DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomLabel3D Class / DicomLabel3D Constructor / DicomLabel3D Constructor(String,Matrix4)



In This Topic
    DicomLabel3D Constructor(String,Matrix4)
    In This Topic
    Create a DicomLabel from a Wavefront "obj" file with explicit orientation
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal ObjFileName As String, _
       ByVal Rotation As OpenTK.Mathematics.Matrix4 _
    )
    'Usage
     
    
    Dim ObjFileName As String
    Dim Rotation As OpenTK.Mathematics.Matrix4
     
    Dim instance As New DicomLabel3D(ObjFileName, Rotation)
    public DicomLabel3D( 
       string ObjFileName,
       OpenTK.Mathematics.Matrix4 Rotation
    )
    public:
    DicomLabel3D( 
       String^ ObjFileName,
       OpenTK.Mathematics.Matrix4 Rotation
    )

    Parameters

    ObjFileName
    Rotation
    Remarks

    Although this constructor points to an individual file, the associated material and texture files must also be present in the same directory, and they will be accessed automatically.

    DICOM uses a strict convention for the axes: +X=Left, +Y=Back and +Z=Head. Whilst the convention for OBJ files is not well defined, most models assume +X=Left, +Y=Head and +Z=front, but this is not universal, so this method allows the user to provide a custom rotation matrix to bring them into alignment.

    The OBJ file implmentation uses vertices, normals and colour or textures to render the images but a few advanced aspects such as transparency are not supported.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also