Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2006-05-25 20:45:24 +0400
committerKen Hughes <khughes@pacific.edu>2006-05-25 20:45:24 +0400
commit48033e00c44c0ff5aab055f6ecfe833b7f688856 (patch)
tree18262846584b26a0c53612e1d5bce719041b940b /source/blender/include/BIF_editmesh.h
parent1b2d9b5ade184d26679b3b4f2e09f27d84b9fd39 (diff)
===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)
Diffstat (limited to 'source/blender/include/BIF_editmesh.h')
-rw-r--r--source/blender/include/BIF_editmesh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/include/BIF_editmesh.h b/source/blender/include/BIF_editmesh.h
index 8711c21b3a8..5cf5f6c8f8a 100644
--- a/source/blender/include/BIF_editmesh.h
+++ b/source/blender/include/BIF_editmesh.h
@@ -65,6 +65,9 @@ extern void separate_mesh(void);
extern void separate_mesh_loose(void);
/* ******************* editmesh_add.c */
+extern void make_prim(int type, float imat[3][3], short tot, short seg,
+ short subdiv, float dia, float d, short ext, short fill,
+ float cent[3]);
extern void add_primitiveMesh(int type);
extern void adduplicate_mesh(void);
extern void add_click_mesh(void);