Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The vtkPLYReader parseAsText method reported an error [Bug] #3047

Open
luchen666 opened this issue Mar 27, 2024 · 5 comments
Open

The vtkPLYReader parseAsText method reported an error [Bug] #3047

luchen666 opened this issue Mar 27, 2024 · 5 comments
Labels
module: I/O type: bug 🐞 Errors in functionality

Comments

@luchen666
Copy link

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
@luchen666 luchen666 added the type: bug 🐞 Errors in functionality label Mar 27, 2024
@luchen666
Copy link
Author

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

@finetjul
Copy link
Member

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

@luchen666
Copy link
Author

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

@finetjul
Copy link
Member

Please add a sample file to the issue.

@luchen666
Copy link
Author

Texture bug #2877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: I/O type: bug 🐞 Errors in functionality
Projects
None yet
Development

No branches or pull requests

2 participants