xBimTeam / XbimGeometry

XbimGeometry contains the CLR interop libraries and the c++ engine used to compute the 3D geometry of models.
https://xbimteam.github.io/
Other
260 stars 131 forks source link

System.Exception: General Error Creating IfcExtrudedAreaSolid #420

Open zilles-edv opened 1 year ago

zilles-edv commented 1 year ago

The attached IFC file cannot be loaded. The file contains incorrect holes with radius = 0. With BIMVision the file can be loaded without problems.

Assemblies and versions affected:

Xbim.Geometry.Engine

Steps (or code) to reproduce the issue:

using (var model = IfcStore.Open(@"Test mit 0 Bohrung.ifc"))
{
    var context = new Xbim3DModelContext(model);
    context.CreateContext();
}

Minimal file to reproduce the issue:

Test mit 0 Bohrung.zip

Expected behavior:

The incorrect holes should simply be ignored.

Actual behavior or exception details:

System.Exception: General Error Creating IfcExtrudedAreaSolid

Additional Details

The error occurs in file XBimFace.cpp at line 1052. The normal cannot be created. XbimVector3D n = wire->Normal;