'DeclarationPublic Function New( _ ByVal ObjFileName As System.String, _ ByVal Rotation As SharpDX.Matrix _ )
public DicomLabel3D( System.string ObjFileName, SharpDX.Matrix Rotation )
Parameters
- ObjFileName
- Rotation
'DeclarationPublic Function New( _ ByVal ObjFileName As System.String, _ ByVal Rotation As SharpDX.Matrix _ )
public DicomLabel3D( System.string ObjFileName, SharpDX.Matrix Rotation )
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 specular maps or transparency are not supported.