Saves a surface mesh file to disk. Surface mesh file names have extension ".srf".
objDocument.SaveMesh(strMeshFileName)
Valid only if objDocument is of type VMR and at least one mesh is present in the Surface Module window. If multiple meshes exist, the current mesh is saved. The last loaded or created mesh automatically gets the "current" status. The current mesh can be specified interactively by using the "Select Mesh icon"; a script command for this purpose will be added in a later release.
' VBScript
Set doc = BrainVoyager.OpenDocument("subject.vmr")
doc.SwitchToSurfaceModule
doc.RefreshSurfaceWindow
doc.CreateSphereMesh
doc.MorphMesh 500, 10, 0.05, 0.3,
50, False
doc.SaveMesh "head.srf"
// JScript
doc = BrainVoyager.OpenDocument("subject.vmr");
doc.SwitchToSurfaceModule();
doc.RefreshSurfaceWindow();
doc.CreateSphereMesh();
doc.MorphMesh(500,
10, 0.05, 0.3, 50, false)
doc.SaveMesh("head.srf");
# PerlScript
$doc = $BrainVoyager->OpenDocument("subject.vmr");
$doc->SwitchToSurfaceModule();
$doc->RefreshSurfaceWindow();
$doc->CreateSphereMesh();
$doc->MorphMesh(500,
10, 0.05, 0.3, 50, 0);
$doc->SaveMesh("head.srf");