Class vxlVTKReader

Reads VTK files (ASCII) and creates JSON objects that can be used as models

Constructor

vxlVTKReader(scene)
Reads a VTK file and creates the respective JSON(s) file(s).

Parameters:

scene

Methods

.getModel()
.isSupported()
Verifies if the HTML5 API is available.
.readFile(file)

Parameters:

Type Name Description
File file

an HTML5 File object

.readText(name, text)
If the VTK file exists in memory as a String (text) then we can use this method to parse it.

Parameters:

Type Name Description
String name

the name of the object

String text

the retrieved object contents