shape_builder.create_axis2_placement_2d

This commit is contained in:
Andrej730
2024-09-11 15:05:18 +05:00
parent 35221ed772
commit fe0be0cdae
2 changed files with 17 additions and 14 deletions
@@ -31,12 +31,10 @@ class TestCreatingShapes(test.bootstrap.IFC4):
assert shape.verts
def test_create_IfcEllipse(self):
ifc_position = self.file.create_entity(
"IfcAxis2Placement2D",
self.file.create_entity("IfcCartesianPoint", V(0, 0)),
RefDirection=self.file.create_entity("IfcDirection", V(1, 0)),
builder = ShapeBuilder(self.file)
item = self.file.create_entity(
"IfcEllipse", Position=builder.create_axis2_placement_2d(), SemiAxis1=1.0, SemiAxis2=0.5
)
item = self.file.create_entity("IfcEllipse", Position=ifc_position, SemiAxis1=1.0, SemiAxis2=0.5)
settings = ifcopenshell.geom.settings()
shape = ifcopenshell.geom.create_shape(settings, item)
assert shape.verts