WEMSceneLoader

MLModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll WEMSceneLoader
definition WEMSceneLoader.def
inherits from WEMGenerator
keywords file, format, surface

Purpose

The WEMSceneLoader allows to load triangle meshes as WEM patches using the Open Asset Import Library (http://assimp.sourceforge.net/). The meshes are automatically triangulated if they contain quads or polygons.

Note: The STL format support of assimp is limited to loading the first mesh in the STL file! If you want to join identical vertices (Join Identical Vertices) which have different normals, you need to enable the Force Normal Generation and turn Generate Normals to “SmoothNormals”.

It supports:

Format File Ending
3D GameStudio Model *.mdl
3D GameStudio Terrain *.hmp
3D Studio Max 3DS *.3ds
3D Studio Max ASE *.ase
AC3D *.ac
AutoCAD DXF *.dxf
Autodesk DXF *.dxf
Blender *.blend
Biovision BVH *.bvh
CharacterStudio Motion *.csm
DirectX X *.x
Doom 3 *.md5mesh; *.md5anim; *.md5camera
Irrlicht Mesh *.irrmesh; *.xml
Irrlicht Scene *.irr; *.xml
LightWave Model *.lwo
LightWave Scene *.lws
Milkshape 3D *.ms3d
Modo Model *.lxo
Neutral File Format *.nff
Object File Format *.off
Ogre *.mesh.xml, *.skeleton.xml, *.material
Quake I *.mdl
Quake II *.md2
Quake III *.md3
Quake 3 BSP *.pk3
Quick3D *.q3o; *q3s
Raw Triangles *.raw
RtCW *.mdc
Sense8 WorldToolkit *.nff
Stanford Polygon Library *.ply
Stereolithography *.stl
Terragen Terrain *.ter
TrueSpace *.cob, *.scn
Valve Model *.smd, *.vta
Wavefront Object *.obj
XGL *.xgl, *.zgl

Parameter Fields

Visible Fields

Auto Apply

name: autoApply, type: Bool, default: TRUE

Enables auto apply.

see also WEMGenerator.autoApply

Apply

name: apply, type: Trigger

Applies the settings.

see also WEMGenerator.apply

Overwrite label and description

name: overwriteLabelDescription, type: Bool, default: FALSE

If checked, the label and description strings in the output WEM are set to Label and Description, respectively.

see also WEMGenerator.overwriteLabelDescription

Label

name: label, type: String

Sets a label string in the output WEM.

see also WEMGenerator.label

Description

name: description, type: String

Sets a description string in the output WEM.

see also WEMGenerator.description

Filename

name: filename, type: String

The filename of the scene.

Log Detail

name: logDetail, type: Enum, default: Errors

Selects the detail of the logging.

Values:

Title Name
Errors Errors
Warnings Warnings
Verbose Verbose
Debugging Debugging

Generate Normals

name: generateNormals, type: Enum, default: SmoothNormals

Defines how normals are generated when they are not present in the file.

Values:

Title Name
Smooth Normals SmoothNormals
Normals Normals
None None

Generate Edges

name: generateEdges, type: Bool, default: FALSE

If checked, edges are generated in the loaded WEM.

Normal Smoothing Crease Angle

name: normalSmoothingCreaseAngle, type: Float, default: 175

Sets an angle limit; if adjacent face normals have an angle above this limit, their shared nodes will be doubled.

Join Identical Vertices

name: joinIdenticalVertices, type: Bool, default: TRUE

Joins vertices that have identical position and properties.

Find Degenerates

name: findDegenerates, type: Bool, default: TRUE

Finds and removes degenerate faces.

Find Invalid Data

name: findInvalidData, type: Bool, default: TRUE

Finds and warns about invalid data.

Optimize Meshes

name: optimizeMeshes, type: Bool, default: FALSE

Optimized the mesh.

Force Normal Generation

name: forceNormalGeneration, type: Bool, default: FALSE

Forces normal generation even if the loaded file contains normal.

Hidden Fields

isProcessing

name: isProcessing, type: Bool, persistent: no

see WEMGenerator.isProcessing

elapsedTime

name: elapsedTime, type: Float, persistent: no

see WEMGenerator.elapsedTime

id

name: id, type: Integer, default: 0

see WEMGenerator.id

updateMode

name: updateMode, type: Enum, default: AutoUpdate

see WEMGenerator.updateMode

clear

name: clear, type: Trigger

see WEMGenerator.clear

shouldComputeNormals

name: shouldComputeNormals, type: Bool, default: TRUE

see WEMGenerator.shouldComputeNormals