-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
[Bug] Adding textures with gaps in the PLYReader 28.3.3 #2877
Comments
Yes, we are missing the DuplicatePointsForFaceTexture logic from VTK |
@luchen666 can you provide an example file with the texture? |
@luchen666 didn't |
@finetjul we don't support DuplicatePointsForFaceTexture yet, that's the missing part in the JS version. |
It shouldn't be too hard, it was done for the objreader if I remember correctly. |
Bug description
Load the ply file with vtkPLYReader and add textures with vtkTexture, but the added textures have gaps.
It is normal to load the same file using meshLab software.
Steps to reproduce
const reader = vtkPLYReader.newInstance();
const mapper = vtkMapper.newInstance({ scalarVisibility: false });
const actor = vtkActor.newInstance();
actor.setMapper(mapper);
mapper.setInputConnection(reader.getOutputPort());
reader
.setUrl(lowerFolder)
.then(async (res) => {
const fullScreenRenderer = vtkFullScreenRenderWindow.newInstance();
let renderer = fullScreenRenderer.getRenderer();
let renderWindow = fullScreenRenderer.getRenderWindow();
})
Detailed Behavior
No response
Expected Behavior
The PLYReader and class vtkTexture correctly loads.
If the PLYReader class can automatically read the jpg address in the ply file, it would be perfect
Environment
The text was updated successfully, but these errors were encountered: