Creates a new triangle mesh by reconstructing the boundary of a segmented data set. A typical application is the reconstruction of the cortical sheet from a segmented hemisphere.
objDocument.ReconstructBoundary()
Valid only if objDocument is of type VMR and the Surface Module window.has been invoked using the SwitchToSurfaceModule method. Any meshes in the surface module are deleted when this function is executed. The new mesh is created by tesselation of the outer boundary of a segmented VMR data set. The initial surface representation shows the voxelated nature of the underlying segmented data set. To remove this, the triangle mesh can be smoothed by using the MorphMesh method.
' VBScript
Set doc = BrainVoyager.OpenDocument("NN_TAL_WM_LH_BL2.vmr")
doc.SwitchToSurfaceModule
doc.RefreshSurfaceWindow
doc.ReconstructBoundary
doc.MorphMesh 50,
10, 0.3, 0.0, 50, False '
smooth triangle mesh
doc.SaveMesh "NN_LH_RECOSM.srf"
// JScript
doc = BrainVoyager.OpenDocument("NN_TAL_WM_LH_BL2.vmr");
doc.SwitchToSurfaceModule();
doc.RefreshSurfaceWindow();
doc.ReconstructBoundary();
doc.MorphMesh(50, 10, 0.3, 0.0,
50, false)
doc.SaveMesh("NN_LH_RECOSM.srf");
# PerlScript
$doc = $BrainVoyager->OpenDocument("NN_TAL_WM_LH_BL2.vmr");
$doc->SwitchToSurfaceModule();
$doc->RefreshSurfaceWindow();
$doc->ReconstructBoundary();
$doc->MorphMesh(50,
10, 0.3, 0.0, 50, 0);
$doc->SaveMesh("NN_LH_RECOSM.srf");