mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
Minor fix
This commit is contained in:
@@ -42,13 +42,7 @@ class Usecase:
|
|||||||
|
|
||||||
def create_item(self):
|
def create_item(self):
|
||||||
size = self.convert_si_to_unit(1)
|
size = self.convert_si_to_unit(1)
|
||||||
points = (
|
points = ((0.0, 0.0), (size, 0.0), (size, size), (0.0, size), (0.0, 0.0))
|
||||||
(0.0, 0.0, 0.0),
|
|
||||||
(size, 0.0, 0.0),
|
|
||||||
(size, size, 0.0),
|
|
||||||
(0.0, size, 0.0),
|
|
||||||
(0.0, 0.0, 0.0),
|
|
||||||
)
|
|
||||||
if self.file.schema == "IFC2X3":
|
if self.file.schema == "IFC2X3":
|
||||||
curve = self.file.createIfcPolyline([self.file.createIfcCartesianPoint(p) for p in points])
|
curve = self.file.createIfcPolyline([self.file.createIfcCartesianPoint(p) for p in points])
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user