Hello,
I have created an actor with the following js code:
var polydata = vtk.Common.DataModel.vtkPolyData.newInstance();
polydata.getPoints().setData(Float32Array.from(vertexArray), 3);
polydata.getPolys().setData(Uint32Array.from(polyArray));
const mapper = vtk.Rendering.Core.vtkMapper.newInstance();
mapper.setInputData(polydata);
const actor = vtk.Rendering.Core.vtkActor.newInstance();
actor.setMapper(mapper);
But how could I calculate the surface area and volume of the actor? (I got all points and meshes)