AddMesh Method


Description

Reads a surface mesh file and adds it to the Surface Module window of the referenced VMR document. This method allows to compose scenes of surface meshes, i.e. loading the mesh file of the reconstructed head of a subject and adding the reconstructed meshes of the cortical hemispheres of that subject.

Syntax

objDocument.AddMesh(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
doc.
LoadMesh "subject_head.srf")
doc.
AddMesh "subject_LH.srf"
doc.
AddMesh "subject_RH.srf"
doc.
RefreshSurfaceWindow

// JScript
doc.
LoadMesh("subject_head.srf");
doc.
AddMesh("subject_LH.srf");
doc.
AddMesh("subject_RH.srf");
doc.
RefreshSurfaceWindow();

# PerlScript
$doc
->LoadMesh("subject_head.srf");
$doc
->AddMesh("subject_LH.srf");
$doc
->AddMesh("subject_RH.srf");
$doc
->RefreshSurfaceWindow();