InflateMesh Method


Description

Unfolds the sulci of a folded mesh representing the cortical sheet of a hemisphere. During the inflation process, the hemisphere grows because the surface area is kept constant with respect to a linked reference mesh.

Syntax

objDocument.InflateMesh(intNrOfIterations, intUpdateScreen, floatSmoothFactor, strReferenceMesh)

Remarks

Valid only if objDocument is of type VMR and and at least one mesh is present in the Surface Module window. If multiple meshes exist, the inflation process is apllied to the current mesh. This is a specialized version of mesh morphing using only the smoothing force. Individual morphing steps producing small changes can be repeated as specified by the intNrOfIterations parameter. The screen is not necessarily updated after each morphing step but after several steps as specified by the intUpdateScreen parameter. The smoothing force is specified by the floatSmoothFactor which typically has values between 0.3 and 0.8 for inflation. In the strReferenceMesh parameter, a mesh is specified which is used for the computation of the reference surface area. This mesh is typically the same mesh used at the start of the inflation process.

Example

' VBScript
doc.ReconstructBoundary
doc.
MorphMesh 50, 10, 0.3, 0.0, 50, True  ' smooth triangle mesh
doc.
SaveMesh "NN_LH_RECOSM.srf"
' Perform 500 iterations, update screen every 30th step, smooth force = 0.8
doc.
InflateMesh 500, 30, 0.8, "NN_LH_RECOSM.srf"
doc.
SaveMesh "NN_LH_INFL.srf"

// JScript
doc.ReconstructBoundary();
doc.MorphMesh(50, 10, 0.3, 0.0, 50, true)
doc.SaveMesh("NN_LH_RECOSM.srf");
doc.
InflateMesh(500, 30, 0.8, "NN_LH_RECOSM.srf")
doc.
SaveMesh("NN_LH_INFL.srf");

# PerlScript
$doc->ReconstructBoundary();
$doc->MorphMesh(50, 10, 0.3, 0.0, 50, 1);
$doc
->SaveMesh("NN_LH_RECOSM.srf");
$doc->
MorphMesh(500, 30, 0.8, "NN_LH_RECOSM.srf");
$doc
->SaveMesh("NN_LH_INFL.srf");