Hide menu
Loading...
Searching...
No Matches
ModelReader

Reads MTKWEB format into the model.

Constructors

new ModelReader()

new ModelReader(): ModelReader

Returns

ModelReader

Methods

read()

read(filename, model, dataProvider): Promise<boolean>

Reads the MTKWEB model with the specified name into the specified model. Returns true if the reading process succeeded, false otherwise.

Parameters

filename

string

Name of the MTKWEB file.

model

Model

Result model.

dataProvider

DataProvider

Provider for data stored in external files.

Returns

Promise<boolean>


readFromBuffer()

readFromBuffer(data, model, dataProvider): Promise<boolean>

Reads the MTKWEB model from buffer into the specified model. Returns true if the reading process succeeded, false otherwise.

Parameters

data

ArrayBufferLike

Buffer with model data.

model

Model

Result model.

dataProvider

DataProvider

Provider for data stored in external files.

Returns

Promise<boolean>

true if the reading process succeeded, false otherwise.