mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Fix bug where 2D angles weren't correctly parsed in OffsetObjectPlacements recipe
This commit is contained in:
@@ -86,12 +86,12 @@ class Patcher:
|
|||||||
self.ax = ax
|
self.ax = ax
|
||||||
self.ay = ay
|
self.ay = ay
|
||||||
self.az = az
|
self.az = az
|
||||||
if self.ay is not None:
|
if self.ax is None:
|
||||||
self.angle_type = "3D"
|
self.angle_type = None
|
||||||
elif self.ay is not None:
|
elif self.ay is None:
|
||||||
self.angle_type = "2D"
|
self.angle_type = "2D"
|
||||||
else:
|
else:
|
||||||
self.angle_type = None
|
self.angle_type = "3D"
|
||||||
|
|
||||||
def patch(self):
|
def patch(self):
|
||||||
absolute_placements = []
|
absolute_placements = []
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
import math
|
import math
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import ifcopenshell
|
|
||||||
|
|
||||||
|
|
||||||
class Patcher:
|
class Patcher:
|
||||||
|
|||||||
Reference in New Issue
Block a user