Open YoneMoreno opened 6 years ago
Can you share your VTK file? I'm not sure if VTKLoader
supports STRUCTURED_POINTS
.
According to this document, VTK
supports five different dataset formats: structured points, structured grid, rectilinear grid, unstructured grid, and polygonal data. After checking the source code, I can say that VTKLoader
just supports the last one (POLYDATA
).
Hello, I meet the same issue, how to load the vtk point structure data. If current loader don't support, could we have a walk around, Or I can convert the file to any other format which totally support point data?
I just try read all the points and colors by self, and render it with a BufferGeometry
let bufferGeometry=new THREE.BufferGeometry();
bufferGeometry.addAttribute('position', new THREE.BufferAttribute(positions, 3));
bufferGeometry.addAttribute('color', new THREE.BufferAttribute(new Float32Array(colors), 3));
bufferGeometry.computeBoundingBox();
But the result seems not good. cloud you help me pls.
@Mugen87 @YoneMoreno
How to load .vtu data? I tried to convert the vtu file to get the real coordinate data written to .json file and read it using BufferGeometryLoader, but the displayed result is wrong.
Merging #23609 in this issue. VTKLoader
should also support the "appended" data format.
I would like to ask for advice because of I have one use case where I need to load VTK file which is a BINARY DATASET STRUCTURED POINTS, which represents a segmented image.
Thank you for your help.