mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-15 13:48:09 +00:00
Add parameterized profile test files and script to generate them
This commit is contained in:
+14
-1
@@ -209,6 +209,19 @@ TestFile("ifcopenshell_halfspaces.ifc")
|
||||
# Several IfcPolygonalBoundedHalfSpaces cutting a single solid
|
||||
TestFile("revit2014_multiple_bounded_halfspaces.ifc")
|
||||
|
||||
# Several parameterized profile extrusions generated by one
|
||||
# of the examples from the IfcOpenShell repository
|
||||
TestFile("IfcCShapeProfileDef.ifc")
|
||||
TestFile("IfcCircleProfileDef.ifc")
|
||||
TestFile("IfcEllipseProfileDef.ifc")
|
||||
TestFile("IfcIShapeProfileDef.ifc")
|
||||
TestFile("IfcLShapeProfileDef.ifc")
|
||||
TestFile("IfcRectangleProfileDef.ifc")
|
||||
TestFile("IfcTShapeProfileDef.ifc")
|
||||
TestFile("IfcTrapeziumProfileDef.ifc")
|
||||
TestFile("IfcUShapeProfileDef.ifc")
|
||||
TestFile("IfcZShapeProfileDef.ifc")
|
||||
|
||||
for test in test_cases:
|
||||
succes = test()
|
||||
if not succes:
|
||||
@@ -220,4 +233,4 @@ if len(failed):
|
||||
print (test)
|
||||
else:
|
||||
print("[Notice] All cases succeeded")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user