XbimGeometry icon indicating copy to clipboard operation
XbimGeometry copied to clipboard

WexBim viewer is not showing the geometry correctly

Open kovacevski opened this issue 1 year ago • 11 comments

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

kovacevski avatar Jun 19 '24 06:06 kovacevski

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.

andyward avatar Jun 19 '24 08:06 andyward

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 avatar Jun 20 '24 06:06 kovacevski

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 avatar Jun 20 '24 06:06 kovacevski

Hello,

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

kovacevski avatar Jun 25 '24 13:06 kovacevski

@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

untecnologo avatar Oct 09 '24 09:10 untecnologo

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

andyward avatar Oct 09 '24 11:10 andyward

@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 avatar Oct 09 '24 12:10 untecnologo

@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.

untecnologo avatar Oct 10 '24 13:10 untecnologo

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

andyward avatar Oct 10 '24 14:10 andyward

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.

martin1cerny avatar Oct 11 '24 12:10 martin1cerny

@martin1cerny Really thank you We appreciate it.

untecnologo avatar Oct 18 '24 11:10 untecnologo