Kitware/vtk-js

The vtkPLYReader parseAsText method reported an error [Bug]

luchen666 opened this issue · 5 comments

Bug description

The vtkPLYReader parseAsText method reported an error when passing in the PLY file text

Steps to reproduce

  1. Read the PLY file using the readAsText method in new FileReader();
  2. vtkPLYReader parseAsText receives Text error
    Snipaste_2024-03-27_17-40-37

Detailed Behavior

No response

Expected Behavior

VtkPLYReader parseAsText can read readAsText data normally

Environment

  • vtk.js version: 30.2.0
  • Browsers: chrome
  • OS: windows

Snipaste_2024-03-27_17-55-41
The arrayBufferToString method should not be used here, right

Thanks for your report. Can you please submit a PullRequest to fix the issue ?

Sorry, I have been using VTK for a while and tried to fix it, but it was not successful;
Now, obtain the file text through the BinaryHelper.arrayBufferToString method;
There is also an issue with PLYRead addTexture. We hope it can be fixed as soon as possible. Thank you

Please add a sample file to the issue.

Texture bug #2877