Coder Social home page Coder Social logo

Comments (3)

dcoeurjo avatar dcoeurjo commented on August 17, 2024 1

Sorry for the delay of my reply.. Thanks for the CTRL-click tip, I was not aware of this one:)

Concerning the autoscale and VF, switching the vector type using polyscope::VectorType::AMBIENT did the job for me (with thus relative length).

Actually, I don't see any use case of having scaled geometry but non-scaled vectors in a viewer.

thx again for the feedbacks.

from polyscope.

dcoeurjo avatar dcoeurjo commented on August 17, 2024

state::lengthScale seems to be fine.. Looks like the issue is during the draw with absolute/relative conversions... strange..

from polyscope.

nmwsharp avatar nmwsharp commented on August 17, 2024

Ah, this makes sense. If state::lengthScale seems fine then it might just be a UI issue, I still haven't figured out how to expose absolute/relative values in sliders intuitively--it might just be a matter of using different limits for absolute values.

Also, this raises another problem: if a structure is being scaled drastically via its model transform (like what happens due to autoscaleStructures), should data like radii be set in the original units, or the scaled units? Right now I think these values get set in the original units, and that's probably the only sane thing to do, but I'm not even sure.

I'll have to dig in to improving this for a future version. Let me know if you spot any concrete bugs, or have any ideas about how things should work!

(FYI for others: remember that you can always manually set a value by ctrl-clicking on the UI sliders as a workaround)

from polyscope.

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.