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¶
Field Index¶
Apply : Trigger |
Force Normal Generation : Bool |
Normal Smoothing Crease Angle : Float |
Auto Apply : Bool |
Generate Edges : Bool |
Optimize Meshes : Bool |
clear : Trigger |
Generate Normals : Enum |
Overwrite label and description : Bool |
Description : String |
id : Integer |
shouldComputeNormals : Bool |
elapsedTime : Float |
isProcessing : Bool |
updateMode : Enum |
Filename : String |
Join Identical Vertices : Bool |
|
Find Degenerates : Bool |
Label : String |
|
Find Invalid Data : Bool |
Log Detail : Enum |
Visible Fields¶
Auto Apply¶
-
name:
autoApply
, type:
Bool
, default:
TRUE
¶ Enables auto apply.
see also WEMGenerator.autoApply
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
andDescription
, respectively.
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
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.