Coder Social home page Coder Social logo

Comments (5)

pca006132 avatar pca006132 commented on July 23, 2024

Yeah this is because we use 32 bit integers for indices, which will cause issues when meshes are large. I thought about converting these indices to 64 bit integers, but it is hard to push for that when no users really need that.

Maybe you can tell us more about your use case to see what we can do about it.

from manifold.

drlukeparry avatar drlukeparry commented on July 23, 2024

Thank your for responding to my query.

Generally in the field of work in 3D Printing/Additive Manufacturing, we often deal with merging large complex meshes (e.g. TPMS / lattice structures) and merging these with other geometries. These can have mesh sizes into the Gb in some extreme instances that cannot be solved through mesh decimation. Otherwise, we have to go to implicit signed distance fields which for mechanical engineering applications are unsatisfactory due to their smoothening effect, that do not match the original BRep in CAD.

If we can solve this, I am confident that it will have a very positive impact in the area of 3D printing community.

Thank you for your consideration,
Luke

from manifold.

elalish avatar elalish commented on July 23, 2024

Thanks! Would you mind sharing an image or maybe zoom video so we can see what kind of mesh you're talking about?

from manifold.

trlsmax avatar trlsmax commented on July 23, 2024

I got the same error when I do some crazy thing in OpenSCAD with manifold enabled.

$fn = 20;
translate([0, 0, 5000])
difference() {
    translate([0, 0, -5000])
        cylinder(h = 10, d = 512, center = true);
    for (y = [0:1.6:400]) {
        for (x = [0:0.8:400]) {
            rotate([atan(y / 5000) * 180 / 3.1415926, atan(x / 5000) * 180 / 3.1415926, 0])
                cylinder(h = 12200, d = 0.8, center = true);
            rotate([atan(y / 5000) * 180 / 3.1415926, atan(-x / 5000) * 180 / 3.1415926, 0])
                cylinder(h = 12200, d = 0.8, center = true);
            rotate([atan(-y / 5000) * 180 / 3.1415926, atan(x / 5000) * 180 / 3.1415926, 0])
                cylinder(h = 12200, d = 0.8, center = true);
            rotate([atan(-y / 5000) * 180 / 3.1415926, atan(-x / 5000) * 180 / 3.1415926, 0])
                cylinder(h = 12200, d = 0.8, center = true);
        }
    }
}

from manifold.

elalish avatar elalish commented on July 23, 2024

Oh, I see now - the sparse indices can be much larger than the actual number of verts, since these faces are big enough to totally defeat the BVH, so we're really getting an O(n^2) pairs list, because it's not really sparse. So we probably don't need to update all our internal indices from 32 to 64 bit, but we do need to update the SparseIndices specifically to 64 bit. That seems like a more reasonable change.

from manifold.

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.