Closed jonathan-merlet-ocl closed 1 year ago
Do note that IFC4 and 4X3 seem to have the same problem, with strings instead of IfcReal.
Any idea if this is something that has recently only just started happening - or has it been there a while and we just never noticed?
@beachtom just tested quickly, 0.0.40 exhibits the problem, 0.0.39 does not. That leaves some uncertainty, but it's not very recent.
This is now fixed
What happened?
Given the following file :
And this code to get the line (this._api is a WebIfc.IfcAPI instance)
const line = this._api.GetLine(0, 1000000);
The direction ratios are stored as string instead of numbers (output from chrome console) :N.B : this IFC file is not correct because it does not contain a project, but web-ifc parses it just fine and it exhibits the problem. I detected it in a bigger IFC file written by web-ifc with correct direction, but I tried to produce a minimal example.
Version
0.0.42
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Anything else?
No response