GithubHelp home page GithubHelp logo

Comments (3)

sebinsuresh avatar sebinsuresh commented on June 5, 2024

I haven't delved into the source code, but I kind of got around this issue by setting the "backface" property of the .children[0].children[1] of the cylinder shape element.

The backface of the cylinder seems to be stored as a separate shape, as a grand-child of the cylinder shape itself.

from zdog.

desandro avatar desandro commented on June 5, 2024

Thanks for reporting this issue. Yeah, this is an issue — there's no straight-forward way to update interior shapes of composite shapes like Cylinder base. The closest thing is updatePath, but I'm not sure if that will work in this case.

from zdog.

waruyama avatar waruyama commented on June 5, 2024

Old issue, but times have changed and this would be an ideal case for using the reactivity functionality from Vue 3. Vue is certainly a bit of an overkill, but that functionality is really cool. It wraps objects in proxies thus allowing you to get notified if anything in the object changes (=making them reactive), even nested deep below if you wish. On notification of the change you could then simply update the scene.

I am not sure if there is any package available that only provides the reactivity part of vue, but if you are using Vue anyway, this should work.

Edit: In other words,this does have to be part of zdog, but could be solved with an external library providing reactivity.

from zdog.

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.