WexBim viewer is not showing the geometry correctly
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
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.
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.
Also, some of the walls are not showing on this file.
TestModel.zip
I am using XBimGeometry 5.1.437 and @xbim/viewer 2.1.0-pre202403281736
Hello,
Any clue why the walls with openings are not showing in wexbim viewer?
@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
Confirmed it's OK in the latest v6 Xbim.Geometry - specifically 6.1.0.751
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 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.
@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.
@martin1cerny can you provide any input on v6 release timescales?
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 Really thank you We appreciate it.