mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
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:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Vendored
+1
-1
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user