-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ifcclash fcl dependency not available for python 3.8 #919
Comments
FCL is also not distributed for Mac :( I wish I had a solution :( |
For mac you might try to use : https://anaconda.org/jf/python-fcl/files |
@CyrilWaechter I'm looking for Python 3.7, since the Python version must match the version used by Blender. But thanks for the link :) |
I have been able to compile python-fcl thanks to DmitryNeverov fork with a small fix DmitryNeverov/python-fcl#1. Can you explain briefly how ifcclash works in blender so I can test if it works without issue ? |
What you've done looks correct. I have just tested with two files of the default cube and I do indeed get a clash result. The resulting JSON file created by executing IFC clash should look something like the following below. Note that even if there are no clashes, the metadata about name/tolerance/a/b should still be in the JSON file, except that clashes would be a blank dictionary or not exist. If you get a totally empty JSON file, that suggests something else has gone wrong and perhaps investigating the console would help.
|
I get result like yours running it from full packaged blender bim addon on windows without issue. Issue apparently comes from a type input change inside fcl.Transform : python ifcclash.py "/home/cyril/Documents/Blender/clash_test.json" --output="/home/cyril/Documents/Blender/clash_test.json"
Creating collision manager a ...
Loading files a ...
Purging unnecessary elements a ...
Creating collision data for a ...
[######################### ]Creating object #84=IfcAirTerminal('1pW0h7YWP4O8PXtP5Xbd1x',$,'Cube',$,$,#75,#83,$,.DIFFUSER.)
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Exception ignored in: 'fcl.fcl.numpy_to_mat3d'
Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Exception ignored in: 'fcl.fcl.numpy_to_vec3d'
Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Creating collision manager b ...
Loading files b ...
Purging unnecessary elements b ...
Creating collision data for b ...
[######################### ]Creating object #84=IfcAirTerminal('0_sCMOjkr8hfXc12UIa2AS',$,'Cube',$,$,#75,#83,$,.DIFFUSER.)
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Exception ignored in: 'fcl.fcl.numpy_to_mat3d'
Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
Exception ignored in: 'fcl.fcl.numpy_to_vec3d'
Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])
ValueError: Buffer dtype mismatch, expected 'double' but got 'float' I don't know numpy a lot. I'll investigate more later. |
From the looks of it, wrapping `transform` in a `numpy.float64()` might fix
that
Sent from a mobile device. Excuse my brevity. Kind regards, Thomas
Op za 25 jul. 2020 17:07 schreef Cyril Waechter <[email protected]>:
… I get result like yours running it from full packaged blender bim addon on
windows without issue. Issue apparently comes from a type input change
inside fcl.Transform :
python ifcclash.py "/home/cyril/Documents/Blender/clash_test.json" --output="/home/cyril/Documents/Blender/clash_test.json"Creating collision manager a ...Loading files a ...Purging unnecessary elements a ...Creating collision data for a ...
[######################### ]Creating object #84=IfcAirTerminal('1pW0h7YWP4O8PXtP5Xbd1x',$,'Cube',$,$,#75,#83,$,.DIFFUSER.)ValueError: Buffer dtype mismatch, expected 'double' but got 'float'Exception ignored in: 'fcl.fcl.numpy_to_mat3d'Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])ValueError: Buffer dtype mismatch, expected 'double' but got 'float'ValueError: Buffer dtype mismatch, expected 'double' but got 'float'Exception ignored in: 'fcl.fcl.numpy_to_vec3d'Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])ValueError: Buffer dtype mismatch, expected 'double' but got 'float'Creating collision manager b ...Loading files b ...Purging unnecessary elements b ...Creating collision data for b ...
[######################### ]Creating object #84=IfcAirTerminal('0_sCMOjkr8hfXc12UIa2AS',$,'Cube',$,$,#75,#83,$,.DIFFUSER.)ValueError: Buffer dtype mismatch, expected 'double' but got 'float'Exception ignored in: 'fcl.fcl.numpy_to_mat3d'Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])ValueError: Buffer dtype mismatch, expected 'double' but got 'float'ValueError: Buffer dtype mismatch, expected 'double' but got 'float'Exception ignored in: 'fcl.fcl.numpy_to_vec3d'Traceback (most recent call last):
File "/home/cyril/.config/blender/2.83/scripts/addons/blenderbim/libs/site/packages/collision.py", line 195, in add_object
t = fcl.Transform(transform[:3, :3], transform[:3, 3])ValueError: Buffer dtype mismatch, expected 'double' but got 'float'
I don't know numpy a lot. I'll investigate more later.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#919 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAILWV7N224NAIJ6TR4AYILR5LYKDANCNFSM4PBUHOSQ>
.
|
Credit to @aothms IfcOpenShell#919 Need testing with python-fc 0.0.12l / fcl 0.5 to make sure it breaks nothing
@aothms you were absolutely right. Thanks. |
Closing bug, as the BlenderBIM Add-on is Python 3.7 based, and so getting fcl distributed for Python 3.8 should be an upstream issue. |
I am very much interested in ifcclash but I am a little worried about python-fcl dependency :
On the good side there is 2 PR to port it to fcl 0.6 but they were made in march and april but non have been merged at the moment :
The text was updated successfully, but these errors were encountered: