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

input0

name: input0, type: Image

The reference image.

inputScene

name: inputScene, type: SoNode

The input scene.

Output Fields

output0

name: output0, type: Image

The output image.

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

Apply

name: apply, type: Trigger

Run the voxelization.

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.

Colored

name: colored, type: Bool, default: FALSE

Enables colored filling.

Use Fill Color

name: useFillColor, type: Bool, default: TRUE

Enables using a global fill color instead of the surface color.

Fill Color

name: fillColor, type: Color, default: 1 1 1

The fill 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.