Coder Social home page Coder Social logo

PointData Arrays not loaded about vtk-js HOT 6 CLOSED

kitware avatar kitware commented on July 20, 2024
PointData Arrays not loaded

from vtk-js.

Comments (6)

jourdain avatar jourdain commented on July 20, 2024 1

screen shot 2017-01-27 at 9 35 53 am

Just pushed a fix for the generator

from vtk-js.

jourdain avatar jourdain commented on July 20, 2024

Thanks for reporting the issue. Looking at the index.json, it seems that we forgot to update the script when we update the DataAttribute class which has change some of the structure.

If you can't wait for us to fix it, you can probably edit manually that json file so it has a structure similar to what is described here: https://kitware.github.io/vtk-js/docs/structures_PolyData.html

from vtk-js.

bilke avatar bilke commented on July 20, 2024

Thanks for pointing me to the current structure.

Is reader.getArrays().forEach(array => { the correct way to iterate over the arrays?

from vtk-js.

jourdain avatar jourdain commented on July 20, 2024

I need to look at the reader and make sure it does understand the new structure. I may have to fix some stuff on the reader anyway.

from vtk-js.

jourdain avatar jourdain commented on July 20, 2024

You can see the change here: https://github.com/Kitware/vtk-js/pull/102/files

from vtk-js.

jourdain avatar jourdain commented on July 20, 2024

Then you may want to do mapper.setInterpolateScalarsBeforeMapping(true)

to get

screen shot 2017-01-27 at 9 54 49 am

from vtk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.