pythreejs

Embed widgets with jupyter-cadquery (threejs): wrong position on load

白昼怎懂夜的黑 提交于 2020-01-22 18:57:25
问题 I am using jupyter-cadquery to visualize some 3D models made with CadQuery. When visualizing the models on a Jupyter notebook, everything works as expected. But when trying to embed the widget in an HTML document, it seems the camera, on load, is pointing to (0, 0, 0) , not as expected. Once you interact with the widget, the camera will point to the expected coordinate. Here is the code to reproduce the error and an animation of the mentioned problem (see instructions bellow on how to

Embed widgets with pythreejs: wrong perspective and camera look-at

≯℡__Kan透↙ 提交于 2020-01-14 06:36:26
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. Peque wants to draw more attention to this question. I am using pythreejs to visualize some 3D models. When visualizing the models on a Jupyter notebook, everything works as expected. But when trying to embed the widget in an HTML document, I am facing two problems: It seems the camera, on load, is looking at (0, 0, 0), not as expected, and once you interact with the widget, the camera will "jump