rule fixtures: update fixture and generation script to match 4404470d9

IFCBSPLINECURVE is abstract and causing fail to fail even if point
dimensions wouldn't be checked.
This commit is contained in:
Andrej730
2026-08-03 15:58:58 +05:00
parent 5964160d67
commit e57c326ad1
3 changed files with 5 additions and 3 deletions
@@ -8,6 +8,6 @@ DATA;
#1=IFCCARTESIANPOINT((0.,0.));
#2=IFCCARTESIANPOINT((1.,0.,0.));
#3=IFCCARTESIANPOINT((1.,1.,0.));
#4=IFCBSPLINECURVE(1,(#1,#2,#3),.POLYLINE_FORM.,.F.,.F.);
#4=IFCBEZIERCURVE(1,(#1,#2,#3),.POLYLINE_FORM.,.F.,.F.);
ENDSEC;
END-ISO-10303-21;
@@ -8,6 +8,6 @@ DATA;
#1=IFCCARTESIANPOINT((0.,0.,0.));
#2=IFCCARTESIANPOINT((1.,0.,0.));
#3=IFCCARTESIANPOINT((1.,1.));
#4=IFCBSPLINECURVE(1,(#1,#2,#3),.POLYLINE_FORM.,.F.,.F.);
#4=IFCBEZIERCURVE(1,(#1,#2,#3),.POLYLINE_FORM.,.F.,.F.);
ENDSEC;
END-ISO-10303-21;
+3 -1
View File
@@ -10,7 +10,9 @@ def make_point(xy, dim):
for d in dims:
f = ifcopenshell.file(schema="IFC2X3")
inst = f.createIfcBSplineCurve(1, list(map(lambda t: make_point(*t), zip(pts, d))), "POLYLINE_FORM", False, False)
inst = f.create_entity(
"IfcBezierCurve", 1, list(map(lambda t: make_point(*t), zip(pts, d))), "POLYLINE_FORM", False, False
)
f.write(
f"{'pass' if len(set(d)) == 1 else 'fail'}-bspline-curve-point-dimensions-{'-'.join(map(str, d))}-ifc2x3.ifc"
)