mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Adapt data type for python-fcl/fcl 0.6.1
Credit to @aothms #919 Need testing with python-fc 0.0.12l / fcl 0.5 to make sure it breaks nothing
This commit is contained in:
committed by
Dion Moult
parent
019f460af2
commit
21a4680811
@@ -185,7 +185,7 @@ class CollisionManager(object):
|
||||
# if no transform passed, assume identity transform
|
||||
if transform is None:
|
||||
transform = np.eye(4)
|
||||
transform = np.asanyarray(transform, dtype=np.float32)
|
||||
transform = np.asanyarray(transform, dtype=np.float64)
|
||||
if transform.shape != (4, 4):
|
||||
raise ValueError('transform must be (4,4)!')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user