Dessia-tech / volmdlr

A python VOLume MoDeLeR computations-oriented with STEP support for import/export
GNU Lesser General Public License v2.1
26 stars 10 forks source link

Error when put merge_meshes=False in babylonjs #1235

Closed younesdessia closed 7 months ago

younesdessia commented 8 months ago

Traceback (most recent call last): File "/home/younes/.local/lib/python3.9/site-packages/IPython/core/interactiveshell.py", line 3442, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-3-390ebcf17e5e>", line 1, in <module> volume_.babylonjs(merge_meshes=False) File "/home/younes/Bureau/DESSIA_WORK/volmdlr/volmdlr/core.py", line 1469, in babylonjs babylon_data = self.babylon_data(merge_meshes=merge_meshes) File "/home/younes/Bureau/DESSIA_WORK/volmdlr/volmdlr/core.py", line 1447, in babylon_data return helper_babylon_data(babylon_data, display_points) File "/home/younes/Bureau/DESSIA_WORK/volmdlr/volmdlr/core.py", line 193, in helper_babylon_data positions = mesh["positions"] KeyError: 'positions'

I reproduce this on simple model (volume model with closedsheel as primitives) and also volumemiodel with assembly.