MeVisLab Scripting Reference
MLOpenVDBToolsWrapper Class Reference

Inherits QObject.

Public Slots

MLOpenVDBGridWrappercreateCompatibleGrid (MLWEMWrapper *wem, MLOpenVDBGridWrapper *ref, double exteriorBandwidth=3.0, double interiorBandwidth=3.0)
 
MLOpenVDBGridWrappercreateGrid (MLWEMWrapper *wem, double resolution=1.0, double exteriorBandwidth=3.0, double interiorBandwidth=3.0)
 

Detailed Description

A scripting extension offering access to some OpenVDB sparse level-set operations.

Create an instance of this class with

openvdb = MLAB.getScriptExtension("OpenVDBTools")
Access to all global functions and objects of MLAB.
Definition: mlabGlobalScriptAccess.h:81
QObject * getScriptExtension(const QString &extension)
Returns access to the given script extension.

Member Function Documentation

◆ createCompatibleGrid

MLOpenVDBGridWrapper* MLOpenVDBToolsWrapper::createCompatibleGrid ( MLWEMWrapper wem,
MLOpenVDBGridWrapper ref,
double  exteriorBandwidth = 3.0,
double  interiorBandwidth = 3.0 
)
slot

Create a sparse level-set grid from a (closed) WEM.

Origin and resolution are taken over from a reference grid.

Parameters
refthe reference grid
exteriorBandwidththe region outside the surface to fill with distance values. (Everything further apart will have the maximum value.)
interiorBandwidththe region inside the surface to fill with (negative) distance values. (Everything further apart will have the minimum value.)

◆ createGrid

MLOpenVDBGridWrapper* MLOpenVDBToolsWrapper::createGrid ( MLWEMWrapper wem,
double  resolution = 1.0,
double  exteriorBandwidth = 3.0,
double  interiorBandwidth = 3.0 
)
slot

Create a sparse level-set grid from a (closed) WEM.

The origin is placed at the center of the WEM.

Parameters
resolution(in mm) of the created grid
exteriorBandwidththe region outside the surface to fill with distance values. (Everything further apart will have the maximum value.)
interiorBandwidththe region inside the surface to fill with (negative) distance values. (Everything further apart will have the minimum value.)