Files
IfcOpenShell/src/ifcopenshell-python/test/fixtures/rules/generate_03.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
568 B
Python
Raw Normal View History

2022-12-26 11:29:32 +01:00
import ifcopenshell
for depth in (-1., 0., 1.):
f = ifcopenshell.file(schema="IFC2X3")
f.createIfcExtrudedAreaSolid(
f.createIfcRectangleProfileDef(
"AREA", None,
f.createIfcAxis2Placement2D(
f.createIfcCartesianPoint((0., 0.))
), 1., 1.
),
f.createIfcAxis2Placement3D(
f.createIfcCartesianPoint((0., 0., 0.))
),
f.createIfcDirection((0., 0., 1.)),
depth
)
f.write(f"{'pass' if depth > 0. else 'fail'}-extrusion-depth-{depth}-ifc2x3.ifc")