Coder Social home page Coder Social logo

Comments (4)

omgitsraven avatar omgitsraven commented on May 18, 2024 1

OK, I've found a couple of new situations that will crash Ao, one of which might not be related to this thread but I'll include it anyway since I have a feeling it'll still be useful -- and the other of which is DEFINITELY related, and is the simplest test case yet, and doesn't do anything to "cheat" the distance function, which should rule that out as a possible cause...

CRASH 3:

idol_CRASH3.zip

In the line:
(scale x y z 1 0.5 1 (lambda (x y z)
change the second 1 to a 2, to make it
(scale x y z 1 0.5 2 (lambda (x y z)
and Ao will instantly crash.

CRASH 4:

idol_CRASH4.zip

Change the negative end of the Z axis of the bounding box from -6 to -8, and Ao will instantly crash.

from libfive.

omgitsraven avatar omgitsraven commented on May 18, 2024

fwiw, turning down the resolution then scaling up the model in code (after increasing the bounds to make room) also causes Crash 2, so it does seem like it has to do with trying to render that function at a certain amount of detail, rather than just something about the literal resolution value itself.

from libfive.

mkeeter avatar mkeeter commented on May 18, 2024

I added CRASH4 as a unit tests, where it reproduces the problem.

The issue here is that during meshing, two evaluations of the same point give slightly different values (?!). The first evaluation gives 0, which is inside the shape; the second gives a tiny positive value (1e-9 or so), which is outside.

There's something strange going on with Eigen: if I disable vectorization with -D EIGEN_DONT_VECTORIZE -D EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT), the test passes, but other unrelated tests start failing (?!).

Anyways, 5f89d8a should work around the issue by not doing the second evaluation (so there's no room to disagree). This fixes all the tests cases above on my machine; can you pull and test it out?

from libfive.

omgitsraven avatar omgitsraven commented on May 18, 2024

That fixes all four for me :) Thanks so much!

from libfive.

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.