[Bf-python] Creating a simple mesh (b2.55) - Nicer methods than from_pydata?

Philip Gillißen guerda at freenet.de
Thu Jan 6 19:25:18 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi readers of the mailing list,

I recently started developing an application being able to create
blender files. It should create miscellaneous meshes like cubes, planes
and polygons.

I really appreciate the new Python API introduced with Blender 2.50. It
looks so promising!
My problem is that the creation of geometry is not as easy as I hoped.
I found the method bpy.types.Mesh.from_pydata [1] but unfortunately,
it's very complicated to use. Furthermore, it has an devastating
sentence in its description:
> Until we have a nicer way to make geometry, use this.
Since Blender 2.50 this sentence is true. I really would like to use the
Python API but with the from_pydata method, it's much more complicated
than it needs to be.
I found a question on StackOverflow[2] about this topic but it doesn't
help me at all...

Can anyone help me find "a nicer way" to create geometry? Or do anyone
know when the nicer methods are built in blender?

Thank you for your answers and your help.

Greetings, Philip


[1]
http://www.blender.org/documentation/250PythonDoc/bpy.types.Mesh.html#bpy.types.Mesh.from_pydata
[2] http://stackoverflow.com/questions/3657120
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0mCQ4ACgkQYNYFUFLXAD3luwCfcOXbi81rXwNCYyCR/7BAyjOe
SRwAnRIyKAejebEmyhLuTb8yVcfr/02T
=HxdE
-----END PGP SIGNATURE-----



More information about the Bf-python mailing list