简体   繁体   中英

Mayavi and Texture Mapping (or turning a 2D image into a 3D image)

I have a project where I have a 2D image but I need to then turn this into a 3D object. I already have the skeleton model of the object, it is a simple matter of applying color to the surface. I have been looking around and it seems 3D programs like Blender have a method like this called texture mapping or uv mapping. However I was assigned to use Mayavi and Python, and so far I could not really find anything about texture mapping in the Mayavi documentation. I was wondering if someone knows how (if possible) to perform texture mapping in Mayavi.

Alternatively, if texture mapping is not possible, what would be the best way (if there is a way) to turn a 2D image into a 3D object.

Here is documentation on Mayavi with examples on texture mapping: http://docs.enthought.com/mayavi/mayavi/tips.html#texture-mapping-actors . If this is not what you need you can always script with Blender like you previously mentioned. http://www.blender.org/education-help/python/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM