DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLabel3D Class / DicomLabel3D Constructor / DicomLabel3D Constructor(String)






In This Topic
    DicomLabel3D Constructor(String)
    In This Topic
    Create a DicomLabel from a Wavefront "obj" file, using a default orientation for OBJ files
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal ObjFileName As System.String _
    )
    'Usage
     
    
    Dim ObjFileName As System.String
     
    Dim instance As New DicomLabel3D(ObjFileName)
    public DicomLabel3D( 
       System.string ObjFileName
    )
    public DicomLabel3D( 
        ObjFileName: System.String
    ); 
    public function DicomLabel3D( 
       ObjFileName : System.String
    );
    public: DicomLabel3D( 
       System.string* ObjFileName
    )
    public:
    DicomLabel3D( 
       System.String^ ObjFileName
    )

    Parameters

    ObjFileName
    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, so this method supplies a default 90 dgree rotation about the X axis 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 specular maps or transparency are not supported.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also