LoadMesh Method


Description

Loads a surface mesh file. Surface mesh file names have extension ".srf".

Syntax

objDocument.LoadMesh(strMeshFileName)

Remarks

Valid only if objDocument is of type VMR and if the Surface Module window for this VMR project has been created. The loaded mesh is not shown automatically in the Surface Module window. To update it, call the RefreshSurfaceWindow method.

Example

' VBScript
Set doc = BrainVoyager.
OpenDocument("subject.vmr")
doc.
SwitchToSurfaceModule
doc.
LoadMesh "subject.srf"
doc.
RefreshSurfaceWindow

// JScript
doc = BrainVoyager.
OpenDocument("subject.vmr");
doc.
SwitchToSurfaceModule();
doc.
LoadMesh("subject.srf");
doc.
RefreshSurfaceWindow();

# PerlScript
$doc = $BrainVoyager->
OpenDocument("subject.vmr");
$doc->
SwitchToSurfaceModule();
$doc
->LoadMesh("subject.srf");
$doc
->RefreshSurfaceWindow();