Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.24k stars 380 forks source link

[Bug] scaling the model will continuously grow the model, incomplete model display, etc;Mobile system incompatibility #3151

Open linhuanfeng opened 1 month ago

linhuanfeng commented 1 month ago

Bug description

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc.

Steps to reproduce

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc

    updateRepProperty(sourceId, fieldName, ...args) {
      // console.log('updateRepProperty', sourceId);
      const methodName = `set${macro.capitalize(fieldName)}`;
      const source = this.$proxyManager.getProxyById(sourceId);
      const myRepresentations = this.$proxyManager
        .getRepresentations()
        .filter((r) => r.getInput() === source);
      for (let i = 0; i < myRepresentations.length; i++) {
        // console.log(myRepresentations[i]);
        if (myRepresentations[i][methodName]) {
          myRepresentations[i][methodName](...args);
        }
      }
      this.$proxyManager.renderAllViews();
    },

image

image

image

image

Detailed Behavior

No response

Expected Behavior

normal

Environment

finetjul commented 1 month ago

I'm afraid I do not understand the problem you stated. What class is impacted with the bug ? Can you give more context of how you encounter the bug ?

linhuanfeng commented 1 month ago

I'm afraid I do not understand the problem you stated. What class is impacted with the bug ? Can you give more context of how you encounter the bug ?

https://github.com/Kitware/glance After modifying the transparency and color on the mobile device (iphone 13,15.4.1), there will be issues with this project. When zooming in, there will be model overlap; Unlimited replication; And the image display is incomplete. That's what the picture above shows.

linhuanfeng commented 1 month ago

There will be many similar problems that arise https://github.com/user-attachments/assets/9ed2a676-110f-424f-8f60-af94de783037

finetjul commented 1 month ago

if you do not modify the color nor the transparency, you do not have any problem with the "scaling" (zooming) ?

linhuanfeng commented 1 month ago

if you do not modify the color nor the transparency, you do not have any problem with the "scaling" (zooming) ?

yes

https://github.com/user-attachments/assets/5ac459ce-6668-4985-992e-cb8a99bcc199