serialize a vtk object

no there’s no network error and even when I console.log the transmitted surface, it shows something like:


which I think means that the stl object is correctly read from server.

the only thing is that it doesn’t show the object in the scene.
any suggestions?

maybe the way that I’m setting mapper or it’s input data is not right?

const reader = vtkSTLReader.newInstance();
reader.setUrl("https://files.fm/down.php?cf&i=4m4h9trdg&n=resultingMesh.stl").then(() => {
    const sur = reader.getOutputData(0);
    console.log(sur);
    mapper.setInputData(sur);
    actor.setMapper(mapper);  
    renderer.addActor(actor);
    resetCamera();
    render();
})