Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bool - holter tower #53

Closed
vegarringdal opened this issue Jun 22, 2021 · 14 comments
Closed

bool - holter tower #53

vegarringdal opened this issue Jun 22, 2021 · 14 comments
Labels
bug Something isn't working

Comments

@vegarringdal
Copy link
Contributor

Holter tower is missing a few windows
Tried this with v 0.20 with and without USE_FAST_BOOLS

image

@agviegas
Copy link
Collaborator

Hey @vegarringdal can you confirm that this still happens? Cheers!

@vegarringdal
Copy link
Contributor Author

@agviegas

Nope, but noticed npm version and console is printing out different version...
I just cloned... so I dint not have any old files laying around

image

@agviegas
Copy link
Collaborator

Hey @vegarringdal yeah that's actually a mistake on our side, you are probably using 35, the log has a typo. If you could provide me the model privately, we'll address this asap. Cheers!

@vegarringdal
Copy link
Contributor Author

I just downloaded a random holter tower IFC file from internet. 😁
Ill see if I have it still when I get home.

@makc
Copy link
Contributor

makc commented Jun 17, 2022

If this is 169 MB file from https://www.markusplassen.no/?p=159 - these windows are now fine. Although there is still a 100+ boolean problems in the file:
Снимок экрана (447)

edit: I think they are fine because the walls around them are gone 😅

@agviegas
Copy link
Collaborator

Hey @makc so still problematic, huh? We'll need to take a deeper look into this when we release more bounties regarding booleans!

@makc
Copy link
Contributor

makc commented Jun 24, 2022

@agviegas as you see, the most of bugs are meshes where joining the vertices does not make them manifold - those are supposedly easy to figure out. but errors in polygon.cpp are kind of hard to understand, and will probably need to be reported to @elalish with obj files to reproduce.

@elalish
Copy link

elalish commented Jun 24, 2022

I'd love to know more about what's going on here. Are you referring to merging nearby verts to e.g. make an STL manifold? Like most things, the simple cases are simple, but making it robust can be pretty tricky. Certainly pass any Manifold errors back to our library. In fact, I have some flags for verbosity that help with spitting out polygon error cases (which is how I've created a lot of my tests).

Speaking of, I had no idea you took me on as a dependency; that's exciting! Ideally I'd like to keep a list somehow of what projects are using the library, though it seems easier said than done. Anyway, thanks for mentioning me.

@makc
Copy link
Contributor

makc commented Jun 24, 2022

@elalish I could log input mesh if you are willing to take a look at that in the context of polygon.cpp error;

Are you referring to merging nearby verts to e.g. make an STL manifold

currently ifc input data is just a triangle soup - so I have attempted to merge the vertices back before passing to manifold lib and when we have a simple enough mesh it works. but I guess there are cases where too many vertices touch and then merging them is doing nothing but harm.

@elalish
Copy link

elalish commented Jun 24, 2022

Yeah, this is why triangle soup like STL is such a problem - it's basically impossible to reliably retain manifoldness in general cases. This is why I helped develop the 3MF format, which is focused on defining and retaining manifoldness.

Yes, please log the input meshes you're having trouble with. If you can manage to write a PR with a TEST case that reproduces it, that would be the best, but an issue with some repro steps would also be helpful.

@makc
Copy link
Contributor

makc commented Jun 24, 2022

@agviegas here is an example of non-manifold hole that breaks this tower file:
image

again, 2 boxes together in one hole, just like in #126 - so I guess the same issue.

@agviegas
Copy link
Collaborator

agviegas commented Jul 6, 2022

Hey @elalish sorry for not letting you know, my bad. We will probably release more bounties to identify these errors, fix the ones related to geometry generation on our side and support your fantastic work (like we did with Garret's three-mesh-bvh), if that's ok with you. 🙂 We'll let you know of any news. In the meantime, of course, feel free to include IFC.js as one of the projects using your library as a dependency, and let us know if you need anything from us.

@elalish
Copy link

elalish commented Jul 6, 2022

Fantastic, keep those bug reports coming! And certainly let me know if have any comments on the API.

@agviegas agviegas added the bounty label Oct 7, 2022
@beachtom beachtom added the bug Something isn't working label Feb 22, 2023
@beachtom
Copy link
Collaborator

From what I can see this is now rendering correctly. So I will close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants