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:
authorWillian Padovani Germano <wpgermano@gmail.com>2003-09-20 07:40:16 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2003-09-20 07:40:16 +0400
commitc0303d78b4c25a095208d33a7d809ebb3db79404 (patch)
tree050c46f3e310c9b7a04e0ce7403216b8b061f698 /source/blender/python/api2_2x/NMesh.h
parent7a510b7240b6441fdbcc43b98b13a2c3127e0b0a (diff)
Exppython:
- Object: implemented getBoundBox and makeDisplayList methods - NMesh and Object: small internal changes for nicer behavior - Draw: added function PupMenu - Docs: updated for the additions above Auto build tiny fix: added the imbuf include dir to source/creator/Makefile.am
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.h')
-rw-r--r--source/blender/python/api2_2x/NMesh.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/NMesh.h b/source/blender/python/api2_2x/NMesh.h
index 88c06cd042f..e0b9f54fe5e 100644
--- a/source/blender/python/api2_2x/NMesh.h
+++ b/source/blender/python/api2_2x/NMesh.h
@@ -69,6 +69,12 @@
#include "gen_utils.h"
#include "modules.h"
+/* EXPP Mesh defines */
+
+#define EXPP_NMESH_MODE_NOPUNOFLIP ME_NOPUNOFLIP
+#define EXPP_NMESH_MODE_TWOSIDED ME_TWOSIDED
+#define EXPP_NMESH_MODE_AUTOSMOOTH ME_AUTOSMOOTH
+#define EXPP_NMESH_MODE_SUBSURF ME_SUBSURF
/* EXPP PyType Objects */
@@ -151,11 +157,14 @@ bone name and the weight.";
static char NMesh_update_doc[] = "(recalc_normals = 0) - updates the Mesh.\n\
if recalc_normals is given and is equal to 1, normal vectors are recalculated.";
-/*
-static char NMesh_asMesh_doc[] = "returns free Mesh datablock object from NMesh";
-static char NMesh_link_doc[] = "(object) - Links NMesh data with Object 'object'";
-*/
+static char NMesh_getMode_doc[] =
+"() - get the mode flags of this nmesh as an or'ed int value.";
+
+static char NMesh_setMode_doc[] =
+"(none to 4 strings) - set the mode flags of this nmesh.\n\
+() - unset all flags.";
+
static char M_NMesh_New_doc[] =
"() - returns a new, empty NMesh mesh object\n";
@@ -213,12 +222,13 @@ typedef struct {
typedef struct {
PyObject_HEAD
Mesh *mesh;
- Object *object; /* object the mesh is linked to (can be NULL) */
+ Object *object; /* for vertex grouping info, since it's stored on the object */
PyObject *name;
PyObject *materials;
PyObject *verts;
PyObject *faces;
int sel_face; /*@ XXX remove */
+ short mode; /* see the EXPP_NMESH_* defines in the beginning of this file */
char flags;
#define NMESH_HASMCOL 1<<0