engine_web-ifc icon indicating copy to clipboard operation
engine_web-ifc copied to clipboard

[Bug]: Bspline Representations Not Rendering Properly Across Several Test Files

Open nickcastel50 opened this issue 2 years ago • 1 comments

What happened?

It appears BSpline representations aren't working across a handful of test files I've tried. I've sent the test files to @beachtom but they are below for reference:

Link 1: https://github.com/buildingSMART/IFC/blob/master/Examples/Advanced%20geometric%20shape/Examples/Basin%20advanced%20brep/File.ifc

Link 2: https://github.com/buildingSMART/IFC/blob/master/Examples/Advanced%20geometric%20shape/Examples/Cube%20advanced%20Brep/File.ifc

I'm currently doing a deep dive in trying to identify the issue, so far I've noticed this:

It appears BSplineSurface.WeightPoints are set here: https://github.com/IFCjs/web-ifc/blob/689fde101c807a0b8474f014561f153a1a637722/src/wasm/geometry/IfcGeometryProcessor.cpp#L1383

But in TriangulateBspline, it is trying to iterate over the "Weights" field, which is never set as far as I can tell: https://github.com/IFCjs/web-ifc/blob/689fde101c807a0b8474f014561f153a1a637722/src/wasm/geometry/operations/mesh_utils.h#L623

Will update as I glean some more information.

Version

Latest

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant log output

No response

Anything else?

No response

nickcastel50 avatar Oct 26 '23 18:10 nickcastel50

image image Does it work properly now?

QuimMoya avatar Oct 03 '24 09:10 QuimMoya