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

WexBim viewer is not showing the geometry correctly #487

Open
kovacevski opened this issue Jun 19, 2024 · 11 comments
Open

WexBim viewer is not showing the geometry correctly #487

kovacevski opened this issue Jun 19, 2024 · 11 comments
Labels
bug Confirmed bug - system not working as intended v5 Confirmed issue in Version 5.x Engine v6 Confirmed Issue in Version 6.x Engine

Comments

@kovacevski
Copy link

Hello,

I have IFC file exported from Archicad. When open in BimVision, the model looks good, but when open in the wexbimviewer it somehow cut the geometries. I am just simply saving the file using:

            using (var model = IfcStore.Open(fileName))
            {
                var context = new Xbim3DModelContext(model);
                context.CreateContext();

                var wexBimFilename = Path.ChangeExtension(fileName, "wexBIM");
                using (var wexBiMfile = File.Create(wexBimFilename))
                {
                    using (var wexBimBinaryWriter = new BinaryWriter(wexBiMfile))
                    {
                        model.SaveAsWexBim(wexBimBinaryWriter);
                        wexBimBinaryWriter.Close();
                    }
                    wexBiMfile.Close();
                }
            }

Thank you.
SimpleShed.zip
bimvision
wexbim

@andyward
Copy link
Member

Which versions of Geometry and wexbim UI are you using?

Can you show the code you use to generate geometry? Have you tried using the adjustWcs param on Xbim3DModelContext.CreateContext() - from the image it looks like the kind of floating point precision issue you get when using large offset coordinates.

@kovacevski
Copy link
Author

Hi Andy,

Exactly, the problem occurs only when I have large offset. I haven't tried adjustWcs, I will try and let you know.

Thank you.

@kovacevski
Copy link
Author

Also, some of the walls are not showing on this file.
image (36)
TestModel.zip

I am using XBimGeometry 5.1.437 and @xbim/viewer 2.1.0-pre202403281736

@kovacevski
Copy link
Author

Hello,

Any clue why the walls with openings are not showing in wexbim viewer?

@untecnologo
Copy link

@kovacevski I have the same issue and I have reported this several times. The problem is in the library when creating the context. We found a new alfa version that fix some of the invisible wall but then other models started to fail.
We noticed that it happens very often when the wall has multiple layers inside but there is not a clear reason for us.

It is not related to the viewer library is related to the Xbim.Geometry

@andyward
Copy link
Member

andyward commented Oct 9, 2024

Confirmed it's OK in the latest v6 Xbim.Geometry - specifically 6.1.0.751

image

We found a new alfa version that fix some of the invisible wall but then other models started to fail.

@untecnologo what failures did you start to see? We're in a geometry bug fix phase right now

@untecnologo
Copy link

untecnologo commented Oct 9, 2024

@andyward amazing but when this version is going to be official and public because the Nugget package version is not available. We are waiting for this version since last November more or less.

@untecnologo
Copy link

@andyward We have been utilizing the latest prerelease version 5.1.762-develop in an attempt to resolve the issue of invisible walls. While this version has shown some success with certain models, it has also introduced several errors and caused crashes in the software with other models. We are keen to know the release timeline for version 6, as other packages have already been updated to version 6. The update for Xbim.Geometry, in particular, is crucial for addressing the invisible walls issue.

@andyward
Copy link
Member

@martin1cerny can you provide any input on v6 release timescales?

@martin1cerny
Copy link
Member

Hi @untecnologo, I'm sorry we keep you waiting for such a long time. We have funding in place to finalise this now. We are currently working on a full IFC4.3 support. This should be done in the next few weeks. We will align the release after that.

@untecnologo
Copy link

@martin1cerny Really thank you We appreciate it.

@Ibrahim5aad Ibrahim5aad added bug Confirmed bug - system not working as intended v5 Confirmed issue in Version 5.x Engine v6 Confirmed Issue in Version 6.x Engine labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug - system not working as intended v5 Confirmed issue in Version 5.x Engine v6 Confirmed Issue in Version 6.x Engine
Projects
None yet
Development

No branches or pull requests

5 participants