xBimTeam / XbimWindowsUI

The home of XbimXplorer and WPF components for your desktop BIM applications.
Other
245 stars 149 forks source link

*.ifc vs. *.ifcXml - Different wall mesh displayed #206

Closed leobroom closed 11 months ago

leobroom commented 11 months ago

Hey folks,

When I am saving the same file of an created ifc file as an ifc and an ifcXML, the ifcXML version shows me some meshing errors.

The IfcIndexedPolyCurve looks fine for me:

<SweptArea id="i41" xsi:type="IfcArbitraryClosedProfileDef" ProfileType="area" ProfileName="dummy">
`

`
` `
` `
` 0`
` 0`
` 1000`
` 0`
` 1000`
` 360`
` 0`
` 360`
`
`
`
`
` `
` 1 2 3 4 1`
`
`
`
`
` ``
` Any Ideas, what went wrong? Greetings. ![xBimIfcIndexedPolyCurveError](https://github.com/xBimTeam/XbimWindowsUI/assets/7702475/151ecbd2-829c-4f62-839a-08c419470989) [errorWall.zip](https://github.com/xBimTeam/XbimWindowsUI/files/12181033/errorWall.zip)
andyward commented 11 months ago

I haven't dug into it but it looks like we've fixed this in v6. i.e. the validation warning is no longer occurring and we're tesselating the ifcxml fine.

image

i.e. these validation warning may be incorrect in 5.1:

Entity #25 (IfcArbitraryClosedProfileDef) has validation failures.
    Issue of type EntityWhereClauses on IfcArbitraryClosedProfileDef.WR1.
Entity #33 (IfcShapeRepresentation) has validation failures.
    Issue of type EntityWhereClauses on IfcShapeRepresentation.CorrectItemsForType.
andyward commented 11 months ago

And the may be similar false negatives in the Step IFC:

image

(v6 on the right)

leobroom commented 11 months ago

Hey Andy, thank you for your answer! Looks good! I didnt realise, that I used an ancient version btw. (4.0) I downloaded it a few days ago from here: https://docs.xbim.net/downloads/xbimxplorer.html. I didn¨t check the git repo, which i should have done. Maybe it makes sense to update the link.

The Explorer is an amazing tool for analysing ifc data!

Greetings, Leon