Python Forum
Python 3D mesh deformation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: Python 3D mesh deformation (/thread-6007.html)



Python 3D mesh deformation - chaton - Nov-02-2017

Hello,

I am currently searching a way to apply a 3d deformation to a 3d mesh (i.e. warp). I know that Bicubic Bspline warp and Thin-plate spline warp allow to make such deformations however as far as I understood splev function only allow to interpolate data (e.g. z_interpolate=f(x,y)) and can not directly be used to compute a warp.

I saw that PyGem toolbox should be able to do the job but I am probably missing something because I am a bit surprised that I cannot easily use classical python module to warp/deform a 3d mesh using Bicubic Bspline warp (I guess by stacking warp function on x,y and z axis).

I am sorry for this basic question but I am a bit lost. Thank you for your help.


RE: Python 3D mesh deformation - Larz60+ - Nov-02-2017

see: https://blender.stackexchange.com/questions/51403/animating-a-mesh-deformation-using-python/51415
seems this could be modified for whatever graphics you are using.