Blender Git Loki

Git Commits -> Revision 48033e0

Revision 48033e0 by Ken Hughes (master)
May 25, 2006, 16:45 (GMT)


===Python API===
Fulfilling a very old feature request: a new Mesh Primitives module is
introduced, which gives script writers access to the Blender mesh datablocks
created from the "Add->Mesh" menu. You can now do this:

from Blender import *

me = Mesh.Primitives.UVsphere(10,20,3) # 10 segments, 20 rings, diameter 3
ob = Object.New('Mesh','mySphere')
ob.link(me)
sc = Scene.GetCurrent()
sc.link(ob)

Commit Details:

Full Hash: 48033e00c44c0ff5aab055f6ecfe833b7f688856
SVN Revision: 7512
Parent Commit: 1b2d9b5
Lines Changed: +784, -264

3 Added Paths:

/source/blender/python/api2_2x/doc/MeshPrimitives.py (+160, -0) (View)
/source/blender/python/api2_2x/meshPrimitive.c (+280, -0) (View)
/source/blender/python/api2_2x/meshPrimitive.h (+46, -0) (View)

3 Modified Paths:

/source/blender/include/BIF_editmesh.h (+3, -0) (Diff)
/source/blender/python/api2_2x/Mesh.c (+4, -0) (Diff)
/source/blender/src/editmesh_add.c (+291, -264) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021