CreateSphereMesh Method


Description

Creates a new spherical mesh which can be used to reconstruct the skin of a subject's head by iterative morphing.

Syntax

objDocument.CreateSphereMesh()

Remarks

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 created sphere possesses a standard mesh resolution (20480 vertices), a radius of 140 mm and it is centred at the midpoint of the underlying VMR data set.

Example

' 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");