diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-26 09:03:18 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-26 09:03:18 +0300 |
commit | d423c0828f2f2bfe3086d7b571bb719ca82ddfcd (patch) | |
tree | 447005326c1bdd1ddfb5152cb52ee348e40f9ca8 /source/blender/python/api2_2x/NMesh.h | |
parent | 1f7bfbf50ace398bbbc2bd9b7b5f3ac9c2758f2c (diff) |
Exppython:
- Added "Radio" to Material modes
- Fixed bug in bone.getParent (bug report on blender.org py forum)
- Added more types to object.shareFrom (method to share obdata)
- Added nmesh.get/setMaxSmoothAngle and nmesh.get/setSubDivLevels
- Updated NMesh doc
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.h')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/NMesh.h b/source/blender/python/api2_2x/NMesh.h index 492760b02a9..4d0d0253fa1 100644 --- a/source/blender/python/api2_2x/NMesh.h +++ b/source/blender/python/api2_2x/NMesh.h @@ -208,6 +208,20 @@ static char NMesh_setMode_doc[] = "(none to 4 strings) - set the mode flags of this nmesh.\n\ () - unset all flags."; +static char NMesh_getMaxSmoothAngle_doc[] = +"() - get the max smooth angle for mesh auto smoothing."; + +static char NMesh_setMaxSmoothAngle_doc[] = +"(int) - set the max smooth angle for mesh auto smoothing in the range\n\ +[1,80] in degrees."; + +static char NMesh_getSubDivLevels_doc[] = +"() - get the subdivision levels for display and rendering: [display, render]"; + +static char NMesh_setSubDivLevels_doc[] = +"([int, int]) - set the subdivision levels for [display, render] -- they are\n\ +clamped to the range [1,6]."; + static char M_NMesh_New_doc[] = "() - returns a new, empty NMesh mesh object\n"; @@ -271,6 +285,8 @@ typedef struct { PyObject *verts; PyObject *faces; int sel_face; /*@ XXX remove */ + short smoothresh; /* max AutoSmooth angle */ + short subdiv[2]; /* SubDiv Levels: display and rendering */ short mode; /* see the EXPP_NMESH_* defines in the beginning of this file */ char flags; |