mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Add support for direction sense and offset in slabs with x_angle
This commit is contained in:
@@ -93,8 +93,14 @@ class Usecase:
|
||||
extrusion_direction = self.file.createIfcDirection(
|
||||
(0.0, sin(self.settings["x_angle"]), cos(self.settings["x_angle"]))
|
||||
)
|
||||
if self.settings["direction_sense"] == "NEGATIVE":
|
||||
extrusion_direction = self.file.createIfcDirection(
|
||||
(0.0, -sin(self.settings["x_angle"]), -cos(self.settings["x_angle"]))
|
||||
)
|
||||
else:
|
||||
extrusion_direction = self.file.createIfcDirection((0.0, 0.0, 1.0))
|
||||
if self.settings["direction_sense"] == "NEGATIVE":
|
||||
extrusion_direction = self.file.createIfcDirection((0.0, 0.0, -1.0))
|
||||
|
||||
position = None
|
||||
# default position for IFC2X3 where .Position is not optional
|
||||
|
||||
Reference in New Issue
Block a user