mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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.ay = ay
|
||||
self.az = az
|
||||
if self.ay is not None:
|
||||
self.angle_type = "3D"
|
||||
elif self.ay is not None:
|
||||
if self.ax is None:
|
||||
self.angle_type = None
|
||||
elif self.ay is None:
|
||||
self.angle_type = "2D"
|
||||
else:
|
||||
self.angle_type = None
|
||||
self.angle_type = "3D"
|
||||
|
||||
def patch(self):
|
||||
absolute_placements = []
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
import math
|
||||
import numpy as np
|
||||
import ifcopenshell
|
||||
|
||||
|
||||
class Patcher:
|
||||
|
||||
Reference in New Issue
Block a user