VoxelizeInventorSceneGPU¶
-
MLModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLVoxelizeInventorSceneGPU
definition MLVoxelizeInventorSceneGPU.def see also VoxelizeInventorScene
keywords rasterize
,scan
,volume
Purpose¶
The VoxelizeInventorSceneGPU
module offers GPU-based voxelization of meshes. It requires at least OpenGL 4.2.
This module supports both color and gray value voxelization of the surfaces and filling the inside of solid surfaces. Compared to VoxelizeInventorScene
, this module is between 100-500 times faster.
There is currently no software or fallback implementation for lower OpenGL versions.
You can use the VoxelizeInventorScene
module as a fallback, but it has different parameters (e.g. surface thickness) and output datatypes.
Usage¶
The module requires an Open Inventor input scene and a reference coordinate system. The reference coordinate system is given via an ML image input. From this input, only the image properties are used, the image data itself is never requested.
The output image is either 8bit gray-scale data from 0 (outside) to 255 (255 = on surface/inside)
or an 8bit RGBA image if Colored
is enabled.
Input Fields¶
Parameter Fields¶
Field Index¶
Antialiasing : Bool |
Use Fill Color : Bool |
Apply : Trigger |
|
Colored : Bool |
|
Fill Alpha : Float |
|
Fill Color : Color |
|
Fill Inside : Bool |
|
Fill Mode : Enum |
|
Supported on this machine : Bool |
Visible Fields¶
Supported on this machine¶
-
name:
supported
, type:
Bool
, persistent:
no
¶ Shows if the module is supported.
Antialiasing¶
-
name:
antialiasing
, type:
Bool
, default:
FALSE
¶ Enables antialiasing. This is done by rasterizing a 2 times larger volume and downsampling to the output volume. Thus it has a large performance impact,
Fill Inside¶
-
name:
fillInside
, type:
Bool
, default:
TRUE
¶ If enabled, this inside of the meshes is filled. Note: The meshes need to be water-tight to ensure that filling works correctly.
Use Fill Color¶
-
name:
useFillColor
, type:
Bool
, default:
TRUE
¶ Enables using a global fill color instead of the surface color.
Fill Alpha¶
-
name:
fillAlpha
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ The fill color’s alpha.
Fill Mode¶
-
name:
fillMode
, type:
Enum
, default:
Add
¶ The fill mode.
Values:
Title | Name | Description |
---|---|---|
Xor | Xor | This inside is filled where the number of overlapping meshes is odd. This allows to e.g. have a large sphere and a smaller sphere inside which is subtracted from the larger sphere using this fill mode. |
Add | Add | The inside of meshes is always filled and in colored mode overlapping meshes add up their colors. |