Visualization of IfcSurfaceFeature
Having a model with IfcElementAssembly and IfcSurfaceFeature a teture given by a jpg isn't rendered. Detailed explanantion is given here: https://ascelibrary.org/doi/10.1061/%28ASCE%29CP.1943-5487.0000744
Assemblies and versions affected:
Xbim.Geometry [rail branch]
Steps (or code) to reproduce the issue:
Put the model and the picture in the same folder. Expected bahavior is the occurence of the texture upon a part of the wall. I even changed the position of the surface feature, if it would be inside the wall, but it doesn't show up.
Minimal file to reproduce the issue:
Expected behavior:
Expected bahavior is the occurence of the texture upon a part of the wall.
Actual behavior or exception details:
The texture osn't visible
For clarification this is not specific to the ifcrail branch.
Unfortunately we're not currently supporting handling IFCSURFACESTYLEWITHTEXTURES . I'm not sure many tools actually output textures, as it's logistically hard (i.e. you've zipped up the image with the IFC, but the texture could have been an external URL, or could have been embedded as an IfcBlobTexture etc)
The starting point for implementing texture support would probably be in:
https://github.com/xBimTeam/XbimEssentials/blob/master/Xbim.Ifc/XbimTexture.cs#L10
A separate issue we might want to look at is whether the IfcSurfaceFeature should be rendered. I don't think the "crack" (element 370) is rendering even without a SurfaceTexture