2011-02-17 21:48:12 +01:00
|
|
|
/*
|
2005-07-19 22:14:17 +02:00
|
|
|
* $Id$
|
Sorry, three commits in one, became difficult to untangle..
Editors Modules
* render/ module added in editors, moved the preview render code there and
also shading related operators.
* physics/ module made more consistent with other modules. renaming files,
making a single physics_ops.c for operators and keymaps. Also move all
particle related operators here now.
* space_buttons/ now should have only operators relevant to the buttons
specificially.
Updates & Notifiers
* Material/Texture/World/Lamp can now be passed to DAG_id_flush_update,
which will go back to a callback in editors. Eventually these should
be in the depsgraph itself, but for now this gives a unified call for
doing updates.
* GLSL materials are now refreshed on changes. There's still various
cases missing,
* Preview icons now hook into this system, solving various update cases
that were missed before.
* Also fixes issue in my last commit, where some preview would not render,
problem is avoided in the new system.
Icon Rendering
* On systems with support for non-power of two textures, an OpenGL texture
is now used instead of glDrawPixels. This avoids problems with icons get
clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
with the default setup. The glDrawPixels implementation on Mac seems to
have a lot of overhread.
* Preview icons are now drawn using proper premul alpha, and never faded so
you can see them clearly.
* Also tried to fix issue with texture node preview rendering, globals can't
be used with threads reliably.
2009-09-29 21:12:12 +02:00
|
|
|
*
|
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 14:34:04 +01:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
Sorry, three commits in one, became difficult to untangle..
Editors Modules
* render/ module added in editors, moved the preview render code there and
also shading related operators.
* physics/ module made more consistent with other modules. renaming files,
making a single physics_ops.c for operators and keymaps. Also move all
particle related operators here now.
* space_buttons/ now should have only operators relevant to the buttons
specificially.
Updates & Notifiers
* Material/Texture/World/Lamp can now be passed to DAG_id_flush_update,
which will go back to a callback in editors. Eventually these should
be in the depsgraph itself, but for now this gives a unified call for
doing updates.
* GLSL materials are now refreshed on changes. There's still various
cases missing,
* Preview icons now hook into this system, solving various update cases
that were missed before.
* Also fixes issue in my last commit, where some preview would not render,
problem is avoided in the new system.
Icon Rendering
* On systems with support for non-power of two textures, an OpenGL texture
is now used instead of glDrawPixels. This avoids problems with icons get
clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
with the default setup. The glDrawPixels implementation on Mac seems to
have a lot of overhread.
* Preview icons are now drawn using proper premul alpha, and never faded so
you can see them clearly.
* Also tried to fix issue with texture node preview rendering, globals can't
be used with threads reliably.
2009-09-29 21:12:12 +02:00
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
2005-07-19 22:14:17 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef DNA_MODIFIER_TYPES_H
|
|
|
|
#define DNA_MODIFIER_TYPES_H
|
|
|
|
|
2011-02-17 21:48:12 +01:00
|
|
|
/** \file DNA_modifier_types.h
|
|
|
|
* \ingroup DNA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "DNA_listBase.h"
|
|
|
|
|
|
|
|
|
2006-08-28 03:12:36 +02:00
|
|
|
#define MODSTACK_DEBUG 1
|
|
|
|
|
2006-06-14 15:25:01 +02:00
|
|
|
/* WARNING ALERT! TYPEDEF VALUES ARE WRITTEN IN FILES! SO DO NOT CHANGE! */
|
|
|
|
|
2005-07-19 22:14:17 +02:00
|
|
|
typedef enum ModifierType {
|
|
|
|
eModifierType_None = 0,
|
|
|
|
eModifierType_Subsurf,
|
|
|
|
eModifierType_Lattice,
|
|
|
|
eModifierType_Curve,
|
2005-07-20 06:14:21 +02:00
|
|
|
eModifierType_Build,
|
2005-07-20 09:11:26 +02:00
|
|
|
eModifierType_Mirror,
|
2005-07-26 04:44:59 +02:00
|
|
|
eModifierType_Decimate,
|
|
|
|
eModifierType_Wave,
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
eModifierType_Armature,
|
|
|
|
eModifierType_Hook,
|
|
|
|
eModifierType_Softbody,
|
2005-09-03 19:22:29 +02:00
|
|
|
eModifierType_Boolean,
|
2006-03-01 16:30:10 +01:00
|
|
|
eModifierType_Array,
|
2006-08-28 03:12:36 +02:00
|
|
|
eModifierType_EdgeSplit,
|
|
|
|
eModifierType_Displace,
|
|
|
|
eModifierType_UVProject,
|
2007-04-29 20:13:55 +02:00
|
|
|
eModifierType_Smooth,
|
|
|
|
eModifierType_Cast,
|
2007-11-04 23:00:24 +01:00
|
|
|
eModifierType_MeshDeform,
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
eModifierType_ParticleSystem,
|
|
|
|
eModifierType_ParticleInstance,
|
|
|
|
eModifierType_Explode,
|
2008-01-29 22:01:12 +01:00
|
|
|
eModifierType_Cloth,
|
2008-02-23 23:11:16 +01:00
|
|
|
eModifierType_Collision,
|
|
|
|
eModifierType_Bevel,
|
2008-04-23 14:44:10 +02:00
|
|
|
eModifierType_Shrinkwrap,
|
2008-09-21 20:20:02 +02:00
|
|
|
eModifierType_Fluidsim,
|
2008-09-24 13:52:31 +02:00
|
|
|
eModifierType_Mask,
|
2008-06-24 14:04:27 +02:00
|
|
|
eModifierType_SimpleDeform,
|
2009-01-06 19:59:03 +01:00
|
|
|
eModifierType_Multires,
|
2009-04-20 17:06:46 +02:00
|
|
|
eModifierType_Surface,
|
2009-07-30 17:00:26 +02:00
|
|
|
eModifierType_Smoke,
|
2009-10-22 18:35:51 +02:00
|
|
|
eModifierType_ShapeKey,
|
2009-12-21 02:02:08 +01:00
|
|
|
eModifierType_Solidify,
|
2010-03-22 01:22:52 +01:00
|
|
|
eModifierType_Screw,
|
2010-08-19 07:58:22 +02:00
|
|
|
eModifierType_Warp,
|
2011-03-25 01:32:38 +01:00
|
|
|
eModifierType_NgonInterp,
|
2005-07-19 22:14:17 +02:00
|
|
|
NUM_MODIFIER_TYPES
|
|
|
|
} ModifierType;
|
|
|
|
|
|
|
|
typedef enum ModifierMode {
|
2005-07-23 21:15:08 +02:00
|
|
|
eModifierMode_Realtime = (1<<0),
|
|
|
|
eModifierMode_Render = (1<<1),
|
|
|
|
eModifierMode_Editmode = (1<<2),
|
2005-08-03 06:04:05 +02:00
|
|
|
eModifierMode_OnCage = (1<<3),
|
2005-08-04 09:25:43 +02:00
|
|
|
eModifierMode_Expanded = (1<<4),
|
2005-08-11 05:31:33 +02:00
|
|
|
eModifierMode_Virtual = (1<<5),
|
2011-01-14 17:57:53 +01:00
|
|
|
eModifierMode_ApplyOnSpline = (1<<6),
|
2007-07-28 23:04:30 +02:00
|
|
|
eModifierMode_DisableTemporary = (1 << 31)
|
2005-07-19 22:14:17 +02:00
|
|
|
} ModifierMode;
|
|
|
|
|
|
|
|
typedef struct ModifierData {
|
|
|
|
struct ModifierData *next, *prev;
|
|
|
|
|
|
|
|
int type, mode;
|
2010-05-04 14:31:24 +02:00
|
|
|
int stackindex, pad;
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
char name[32];
|
2009-01-04 15:14:06 +01:00
|
|
|
|
|
|
|
/* XXX for timing info set by caller... solve later? (ton) */
|
|
|
|
struct Scene *scene;
|
|
|
|
|
2005-08-04 09:25:43 +02:00
|
|
|
char *error;
|
2005-07-19 22:14:17 +02:00
|
|
|
} ModifierData;
|
|
|
|
|
2005-07-23 21:15:08 +02:00
|
|
|
typedef enum {
|
|
|
|
eSubsurfModifierFlag_Incremental = (1<<0),
|
2005-08-12 23:55:50 +02:00
|
|
|
eSubsurfModifierFlag_DebugIncr = (1<<1),
|
2006-01-10 12:36:57 +01:00
|
|
|
eSubsurfModifierFlag_ControlEdges = (1<<2),
|
|
|
|
eSubsurfModifierFlag_SubsurfUv = (1<<3)
|
2005-07-23 21:15:08 +02:00
|
|
|
} SubsurfModifierFlag;
|
2005-09-24 22:17:48 +02:00
|
|
|
|
2011-05-01 17:16:59 +02:00
|
|
|
/* not a real modifier */
|
|
|
|
typedef struct MappingInfoModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Tex *texture;
|
|
|
|
struct Object *map_object;
|
|
|
|
char uvlayer_name[32];
|
|
|
|
int uvlayer_tmp;
|
|
|
|
int texmapping;
|
|
|
|
} MappingInfoModifierData;
|
|
|
|
|
2005-07-19 22:14:17 +02:00
|
|
|
typedef struct SubsurfModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2005-07-23 21:15:08 +02:00
|
|
|
short subdivType, levels, renderLevels, flags;
|
- shuffled editmesh derived function name/function
- added ModifierTypeInfo.freeData function
- added modifier_{new,free] utility function
- added ccgSubSurf_getUseAgeCounts to query info
- removed subsurf modifier faking (ME_SUBSURF flag is no
longer valid). subsurf modifier gets converted on file load
although there is obscure linked mesh situation where this
can go wrong, will fix shortly. this also means that some
places in the code that test/copy subsurf settings are broken
for the time being.
- shuffled modifier calculation to be simpler. note that
all modifiers are currently disabled in editmode (including
subsurf). don't worry, will return shortly.
- bug fix, build modifier didn't randomize meshes with only verts
- cleaned up subsurf_ccg and adapted for future editmode modifier
work
- added editmesh.derived{Cage,Final}, not used yet
- added SubsurfModifierData.{mCache,emCache}, will be used to cache
subsurf instead of caching in derivedmesh itself
- removed old subsurf buttons
- added do_modifiers_buttons to handle modifier events
- removed count_object counting of modifier (subsurfed) objects...
this would be nice to add back at some point but requires care.
probably requires rewrite of counting system.
New feature: Incremental Subsurf in Object Mode
The previous release introduce incremental subsurf calculation during
editmode but it was not turned on during object mode. In general it
does not make sense to have it always enabled during object mode because
it requires caching a fair amount of information about the mesh which
is a waste of memory unless the mesh is often recalculated.
However, for mesh's that have subsurfed armatures for example, or that
have other modifiers so that the mesh is essentially changing on every
frame, it makes a lot of sense to keep the subsurf'd object around and
that is what the new incremental subsurf modifier toggle is for. The
intent is that the user will enable this option for (a) a mesh that is
currently under active editing or (b) a mesh that is heavily updated
in the scene, such as a character.
I will try to write more about this feature for release, because it
has advantages and disadvantages that are not immediately obvious (the
first user reaction will be to turn it on for ever object, which is
probably not correct).
2005-07-21 22:30:33 +02:00
|
|
|
|
|
|
|
void *emCache, *mCache;
|
2005-07-19 22:14:17 +02:00
|
|
|
} SubsurfModifierData;
|
|
|
|
|
|
|
|
typedef struct LatticeModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object;
|
2005-10-20 20:52:29 +02:00
|
|
|
char name[32]; /* optional vertexgroup name */
|
2005-07-19 22:14:17 +02:00
|
|
|
} LatticeModifierData;
|
|
|
|
|
|
|
|
typedef struct CurveModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object;
|
2005-10-20 20:52:29 +02:00
|
|
|
char name[32]; /* optional vertexgroup name */
|
2006-10-28 18:48:56 +02:00
|
|
|
short defaxis; /* axis along which curve deforms */
|
|
|
|
char pad[6];
|
2005-07-19 22:14:17 +02:00
|
|
|
} CurveModifierData;
|
|
|
|
|
2006-10-28 18:48:56 +02:00
|
|
|
/* CurveModifierData->defaxis */
|
|
|
|
#define MOD_CURVE_POSX 1
|
|
|
|
#define MOD_CURVE_POSY 2
|
|
|
|
#define MOD_CURVE_POSZ 3
|
|
|
|
#define MOD_CURVE_NEGX 4
|
|
|
|
#define MOD_CURVE_NEGY 5
|
|
|
|
#define MOD_CURVE_NEGZ 6
|
|
|
|
|
2005-07-20 06:14:21 +02:00
|
|
|
typedef struct BuildModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
float start, length;
|
|
|
|
int randomize, seed;
|
|
|
|
} BuildModifierData;
|
|
|
|
|
2008-09-24 13:52:31 +02:00
|
|
|
/* Mask Modifier */
|
|
|
|
typedef struct MaskModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *ob_arm; /* armature to use to in place of hardcoded vgroup */
|
|
|
|
char vgroup[32]; /* name of vertex group to use to mask */
|
|
|
|
|
|
|
|
int mode; /* using armature or hardcoded vgroup */
|
|
|
|
int flag; /* flags for various things */
|
|
|
|
} MaskModifierData;
|
|
|
|
|
|
|
|
/* Mask Modifier -> mode */
|
|
|
|
#define MOD_MASK_MODE_VGROUP 0
|
|
|
|
#define MOD_MASK_MODE_ARM 1
|
|
|
|
|
|
|
|
/* Mask Modifier -> flag */
|
|
|
|
#define MOD_MASK_INV (1<<0)
|
|
|
|
|
2006-03-01 16:30:10 +01:00
|
|
|
typedef struct ArrayModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2007-03-18 14:26:53 +01:00
|
|
|
/* the object with which to cap the start of the array */
|
|
|
|
struct Object *start_cap;
|
|
|
|
/* the object with which to cap the end of the array */
|
|
|
|
struct Object *end_cap;
|
2006-03-01 16:30:10 +01:00
|
|
|
/* the curve object to use for MOD_ARR_FITCURVE */
|
|
|
|
struct Object *curve_ob;
|
|
|
|
/* the object to use for object offset */
|
|
|
|
struct Object *offset_ob;
|
|
|
|
/* a constant duplicate offset;
|
|
|
|
1 means the duplicates are 1 unit apart
|
2010-03-22 10:30:00 +01:00
|
|
|
*/
|
2006-03-01 16:30:10 +01:00
|
|
|
float offset[3];
|
|
|
|
/* a scaled factor for duplicate offsets;
|
|
|
|
1 means the duplicates are 1 object-width apart
|
2010-03-22 10:30:00 +01:00
|
|
|
*/
|
2006-03-01 16:30:10 +01:00
|
|
|
float scale[3];
|
|
|
|
/* the length over which to distribute the duplicates */
|
|
|
|
float length;
|
|
|
|
/* the limit below which to merge vertices in adjacent duplicates */
|
|
|
|
float merge_dist;
|
|
|
|
/* determines how duplicate count is calculated; one of:
|
2010-03-22 10:30:00 +01:00
|
|
|
MOD_ARR_FIXEDCOUNT -> fixed
|
|
|
|
MOD_ARR_FITLENGTH -> calculated to fit a set length
|
|
|
|
MOD_ARR_FITCURVE -> calculated to fit the length of a Curve object
|
|
|
|
*/
|
2006-03-01 16:30:10 +01:00
|
|
|
int fit_type;
|
|
|
|
/* flags specifying how total offset is calculated; binary OR of:
|
2010-03-22 10:30:00 +01:00
|
|
|
MOD_ARR_OFF_CONST -> total offset += offset
|
|
|
|
MOD_ARR_OFF_RELATIVE -> total offset += relative * object width
|
|
|
|
MOD_ARR_OFF_OBJ -> total offset += offset_ob's matrix
|
2006-03-01 16:30:10 +01:00
|
|
|
total offset is the sum of the individual enabled offsets
|
|
|
|
*/
|
|
|
|
int offset_type;
|
|
|
|
/* general flags:
|
2010-03-22 10:30:00 +01:00
|
|
|
MOD_ARR_MERGE -> merge vertices in adjacent duplicates
|
2006-03-01 16:30:10 +01:00
|
|
|
*/
|
|
|
|
int flags;
|
|
|
|
/* the number of duplicates to generate for MOD_ARR_FIXEDCOUNT */
|
|
|
|
int count;
|
|
|
|
} ArrayModifierData;
|
|
|
|
|
|
|
|
/* ArrayModifierData->fit_type */
|
|
|
|
#define MOD_ARR_FIXEDCOUNT 0
|
|
|
|
#define MOD_ARR_FITLENGTH 1
|
|
|
|
#define MOD_ARR_FITCURVE 2
|
|
|
|
|
|
|
|
/* ArrayModifierData->offset_type */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_ARR_OFF_CONST (1<<0)
|
|
|
|
#define MOD_ARR_OFF_RELATIVE (1<<1)
|
|
|
|
#define MOD_ARR_OFF_OBJ (1<<2)
|
2006-03-01 16:30:10 +01:00
|
|
|
|
|
|
|
/* ArrayModifierData->flags */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_ARR_MERGE (1<<0)
|
|
|
|
#define MOD_ARR_MERGEFINAL (1<<1)
|
2006-03-01 16:30:10 +01:00
|
|
|
|
2005-07-20 09:11:26 +02:00
|
|
|
typedef struct MirrorModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2010-10-19 03:57:15 +02:00
|
|
|
short axis; /* deprecated, use flag instead */
|
|
|
|
short flag;
|
2005-07-20 09:11:26 +02:00
|
|
|
float tolerance;
|
2007-11-13 07:56:55 +01:00
|
|
|
struct Object *mirror_ob;
|
2005-07-20 09:11:26 +02:00
|
|
|
} MirrorModifierData;
|
|
|
|
|
2005-10-29 13:36:21 +02:00
|
|
|
/* MirrorModifierData->flag */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_MIR_CLIPPING (1<<0)
|
|
|
|
#define MOD_MIR_MIRROR_U (1<<1)
|
|
|
|
#define MOD_MIR_MIRROR_V (1<<2)
|
|
|
|
#define MOD_MIR_AXIS_X (1<<3)
|
|
|
|
#define MOD_MIR_AXIS_Y (1<<4)
|
|
|
|
#define MOD_MIR_AXIS_Z (1<<5)
|
|
|
|
#define MOD_MIR_VGROUP (1<<6)
|
2011-02-10 01:44:26 +01:00
|
|
|
#define MOD_MIR_NO_MERGE (1<<7)
|
2005-10-29 13:36:21 +02:00
|
|
|
|
2006-08-28 03:12:36 +02:00
|
|
|
typedef struct EdgeSplitModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
float split_angle; /* angle above which edges should be split */
|
|
|
|
int flags;
|
|
|
|
} EdgeSplitModifierData;
|
|
|
|
|
|
|
|
/* EdgeSplitModifierData->flags */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_EDGESPLIT_FROMANGLE (1<<1)
|
|
|
|
#define MOD_EDGESPLIT_FROMFLAG (1<<2)
|
2006-08-28 03:12:36 +02:00
|
|
|
|
2008-02-23 23:11:16 +01:00
|
|
|
typedef struct BevelModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
float value; /* the "raw" bevel value (distance/amount to bevel) */
|
|
|
|
int res; /* the resolution (as originally coded, it is the number of recursive bevels) */
|
|
|
|
int pad;
|
|
|
|
short flags; /* general option flags */
|
|
|
|
short val_flags; /* flags used to interpret the bevel value */
|
|
|
|
short lim_flags; /* flags to tell the tool how to limit the bevel */
|
|
|
|
short e_flags; /* flags to direct how edge weights are applied to verts */
|
|
|
|
float bevel_angle; /* if the BME_BEVEL_ANGLE is set, this will be how "sharp" an edge must be before it gets beveled */
|
|
|
|
char defgrp_name[32]; /* if the BME_BEVEL_VWEIGHT option is set, this will be the name of the vert group */
|
|
|
|
} BevelModifierData;
|
|
|
|
|
|
|
|
typedef struct BMeshModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
float pad;
|
|
|
|
int type;
|
|
|
|
} BMeshModifierData;
|
|
|
|
|
2009-07-30 17:00:26 +02:00
|
|
|
|
|
|
|
/* Smoke modifier flags */
|
|
|
|
#define MOD_SMOKE_TYPE_DOMAIN (1 << 0)
|
|
|
|
#define MOD_SMOKE_TYPE_FLOW (1 << 1)
|
|
|
|
#define MOD_SMOKE_TYPE_COLL (1 << 2)
|
|
|
|
|
|
|
|
typedef struct SmokeModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct SmokeDomainSettings *domain;
|
|
|
|
struct SmokeFlowSettings *flow; /* inflow, outflow, smoke objects */
|
|
|
|
struct SmokeCollSettings *coll; /* collision objects */
|
|
|
|
float time;
|
|
|
|
int type; /* domain, inflow, outflow, ... */
|
|
|
|
} SmokeModifierData;
|
|
|
|
|
2006-08-28 03:12:36 +02:00
|
|
|
typedef struct DisplaceModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2011-05-01 17:16:59 +02:00
|
|
|
/* keep in sync with MappingInfoModifierData */
|
2006-08-28 03:12:36 +02:00
|
|
|
struct Tex *texture;
|
2011-05-01 17:16:59 +02:00
|
|
|
struct Object *map_object;
|
|
|
|
char uvlayer_name[32];
|
|
|
|
int uvlayer_tmp;
|
|
|
|
int texmapping;
|
|
|
|
int pad10;
|
|
|
|
/* end MappingInfoModifierData */
|
|
|
|
|
2006-08-28 03:12:36 +02:00
|
|
|
float strength;
|
|
|
|
int direction;
|
|
|
|
char defgrp_name[32];
|
|
|
|
float midlevel;
|
|
|
|
} DisplaceModifierData;
|
|
|
|
|
|
|
|
/* DisplaceModifierData->direction */
|
|
|
|
enum {
|
|
|
|
MOD_DISP_DIR_X,
|
|
|
|
MOD_DISP_DIR_Y,
|
|
|
|
MOD_DISP_DIR_Z,
|
|
|
|
MOD_DISP_DIR_NOR,
|
2006-11-20 15:23:41 +01:00
|
|
|
MOD_DISP_DIR_RGB_XYZ,
|
2006-08-28 03:12:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* DisplaceModifierData->texmapping */
|
|
|
|
enum {
|
|
|
|
MOD_DISP_MAP_LOCAL,
|
|
|
|
MOD_DISP_MAP_GLOBAL,
|
|
|
|
MOD_DISP_MAP_OBJECT,
|
|
|
|
MOD_DISP_MAP_UV,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct UVProjectModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
/* the objects which do the projecting */
|
2009-08-21 04:51:56 +02:00
|
|
|
struct Object *projectors[10]; /* MOD_UVPROJECT_MAX */
|
2006-08-28 03:12:36 +02:00
|
|
|
struct Image *image; /* the image to project */
|
|
|
|
int flags;
|
|
|
|
int num_projectors;
|
2006-11-22 16:09:41 +01:00
|
|
|
float aspectx, aspecty;
|
* Multiply for panorama cameras
* Some cases of struct name being set where it shouldnt have been.
* Spelling: wich --> which
* Copy and initialize uv modifier scale, remove unneeded enum.
* Ability to pin any object into the context.
* Update uv window while transforming (useful when used with UVProject modifier)
* Patch by Wahooney, so new template's are internal text and dont get saved over
by mistake.
* Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186
Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process
/usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted
by Jochen Schmitt.
* [#21816] bpy.data.add_image has stopped working on Windows. moved to
bpy.data.images.load(), missed this call.
(commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)
2010-03-30 14:15:16 +02:00
|
|
|
float scalex, scaley;
|
2007-01-29 16:10:55 +01:00
|
|
|
char uvlayer_name[32];
|
|
|
|
int uvlayer_tmp, pad;
|
2006-08-28 03:12:36 +02:00
|
|
|
} UVProjectModifierData;
|
|
|
|
|
|
|
|
#define MOD_UVPROJECT_MAXPROJECTORS 10
|
|
|
|
|
2007-01-29 17:28:11 +01:00
|
|
|
/* UVProjectModifierData->flags */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_UVPROJECT_OVERRIDEIMAGE (1<<0)
|
2007-01-29 17:28:11 +01:00
|
|
|
|
2005-07-26 04:44:59 +02:00
|
|
|
typedef struct DecimateModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
float percent;
|
|
|
|
int faceCount;
|
|
|
|
} DecimateModifierData;
|
|
|
|
|
2007-04-29 20:13:55 +02:00
|
|
|
/* Smooth modifier flags */
|
2007-04-30 21:20:43 +02:00
|
|
|
#define MOD_SMOOTH_X (1<<1)
|
|
|
|
#define MOD_SMOOTH_Y (1<<2)
|
|
|
|
#define MOD_SMOOTH_Z (1<<3)
|
2007-04-29 20:13:55 +02:00
|
|
|
|
|
|
|
typedef struct SmoothModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
float fac;
|
|
|
|
char defgrp_name[32];
|
|
|
|
short flag, repeat;
|
|
|
|
|
|
|
|
} SmoothModifierData;
|
|
|
|
|
|
|
|
/* Cast modifier flags */
|
2007-04-30 21:20:43 +02:00
|
|
|
#define MOD_CAST_X (1<<1)
|
|
|
|
#define MOD_CAST_Y (1<<2)
|
|
|
|
#define MOD_CAST_Z (1<<3)
|
|
|
|
#define MOD_CAST_USE_OB_TRANSFORM (1<<4)
|
|
|
|
#define MOD_CAST_SIZE_FROM_RADIUS (1<<5)
|
2007-04-29 20:13:55 +02:00
|
|
|
|
|
|
|
/* Cast modifier projection types */
|
|
|
|
#define MOD_CAST_TYPE_SPHERE 0
|
|
|
|
#define MOD_CAST_TYPE_CYLINDER 1
|
|
|
|
#define MOD_CAST_TYPE_CUBOID 2
|
|
|
|
|
|
|
|
typedef struct CastModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object;
|
|
|
|
float fac;
|
|
|
|
float radius;
|
|
|
|
float size;
|
|
|
|
char defgrp_name[32];
|
|
|
|
short flag, type;
|
|
|
|
} CastModifierData;
|
|
|
|
|
2007-04-29 18:15:50 +02:00
|
|
|
enum {
|
|
|
|
MOD_WAV_MAP_LOCAL,
|
|
|
|
MOD_WAV_MAP_GLOBAL,
|
|
|
|
MOD_WAV_MAP_OBJECT,
|
|
|
|
MOD_WAV_MAP_UV,
|
|
|
|
};
|
|
|
|
|
2007-04-30 18:49:12 +02:00
|
|
|
/* WaveModifierData.flag */
|
2010-12-12 02:33:12 +01:00
|
|
|
#define MOD_WAVE_X (1<<1)
|
|
|
|
#define MOD_WAVE_Y (1<<2)
|
|
|
|
#define MOD_WAVE_CYCL (1<<3)
|
|
|
|
#define MOD_WAVE_NORM (1<<4)
|
|
|
|
#define MOD_WAVE_NORM_X (1<<5)
|
|
|
|
#define MOD_WAVE_NORM_Y (1<<6)
|
|
|
|
#define MOD_WAVE_NORM_Z (1<<7)
|
2007-04-30 18:49:12 +02:00
|
|
|
|
2005-07-26 04:44:59 +02:00
|
|
|
typedef struct WaveModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2006-11-20 12:58:48 +01:00
|
|
|
struct Object *objectcenter;
|
2007-04-30 17:20:05 +02:00
|
|
|
char defgrp_name[32];
|
2007-04-29 18:15:50 +02:00
|
|
|
struct Tex *texture;
|
|
|
|
struct Object *map_object;
|
2006-11-20 12:58:48 +01:00
|
|
|
|
2005-07-26 04:44:59 +02:00
|
|
|
short flag, pad;
|
|
|
|
|
|
|
|
float startx, starty, height, width;
|
2008-06-18 17:22:42 +02:00
|
|
|
float narrow, speed, damp, falloff;
|
2007-04-29 18:15:50 +02:00
|
|
|
|
|
|
|
int texmapping, uvlayer_tmp;
|
|
|
|
|
|
|
|
char uvlayer_name[32];
|
2008-06-18 17:22:42 +02:00
|
|
|
|
2005-07-26 04:44:59 +02:00
|
|
|
float timeoffs, lifetime;
|
2008-06-18 17:22:42 +02:00
|
|
|
float pad1;
|
2005-07-26 04:44:59 +02:00
|
|
|
} WaveModifierData;
|
|
|
|
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
typedef struct ArmatureModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2007-11-16 16:46:59 +01:00
|
|
|
short deformflag, multi; /* deformflag replaces armature->deformflag */
|
2005-10-20 18:31:46 +02:00
|
|
|
int pad2;
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
struct Object *object;
|
2007-11-16 16:46:59 +01:00
|
|
|
float *prevCos; /* stored input of previous modifier, for vertexgroup blending */
|
2006-08-28 23:56:58 +02:00
|
|
|
char defgrp_name[32];
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
} ArmatureModifierData;
|
|
|
|
|
|
|
|
typedef struct HookModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object;
|
2009-08-21 12:47:27 +02:00
|
|
|
char subtarget[32]; /* optional name of bone target */
|
|
|
|
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
float parentinv[4][4]; /* matrix making current transform unmodified */
|
|
|
|
float cent[3]; /* visualization of hook */
|
|
|
|
float falloff; /* if not zero, falloff is distance where influence zero */
|
|
|
|
|
2005-09-24 22:17:48 +02:00
|
|
|
int *indexar; /* if NULL, it's using vertexgroup */
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
int totindex;
|
|
|
|
float force;
|
2005-09-24 22:17:48 +02:00
|
|
|
char name[32]; /* optional vertexgroup name */
|
- added eModifierTypeFlag_RequiresOriginalData for modifiers that
can only follow deform (for example, they store mesh vertex
indices)
- added ModifierType.foreachObjectLink for iterating over Object
links inside modifier data (used for file load, relinking, etc)
- switched various modifiers_ functions to take object argument
instead of ListBase
- added user editable name field to modifiers
- bug fix, duplicate and make single user didn't relink object
pointers in modifier data
- added modifiers to outliner, needs icon
- added armature, hook, and softbody modifiers (softbody doesn't
do anything atm). added conversion of old hooks to modifiers.
NOTE-THE-FIRST: User name field is not initialized on loading 2.38 files
so if you have saved stuff with a cvs blender you will see blank names.
NOTE-THE-SECOND: Since modifiers aren't evaluated yet for non-Mesh
objects, hooks for lattices and curves are broken. Don't updated if
you actually, say, *use* Blender.
NOTE-THE-THIRD: Old hooks used a quirky weighting system during
deformation which can't be extended to modifiers. On the upside,
I doubt anyone relied on the old quirky system and the new system
makes much more sense. (Although the way falloff works is still
quite stupid I think).
2005-08-11 00:05:52 +02:00
|
|
|
} HookModifierData;
|
|
|
|
|
|
|
|
typedef struct SoftbodyModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
} SoftbodyModifierData;
|
|
|
|
|
2008-01-29 22:01:12 +01:00
|
|
|
typedef struct ClothModifierData {
|
2009-01-04 15:14:06 +01:00
|
|
|
ModifierData modifier;
|
2008-01-29 22:01:12 +01:00
|
|
|
|
2009-01-04 15:14:06 +01:00
|
|
|
struct Scene *scene; /* the context, time etc is here */
|
|
|
|
struct Cloth *clothObject; /* The internal data structure for cloth. */
|
|
|
|
struct ClothSimSettings *sim_parms; /* definition is in DNA_cloth_types.h */
|
|
|
|
struct ClothCollSettings *coll_parms; /* definition is in DNA_cloth_types.h */
|
|
|
|
struct PointCache *point_cache; /* definition is in DNA_object_force.h */
|
New point cache file format:
- HEADER (beginning of each file)
* general header:
+ 8 char: "BPHYSICS"
+ 1 int: simulation type (same as PTCacheID->type)
* custom header (same for sb, particles and cloth, but can be different for new dynamics)
+ 1 int: totpoint (number of points)
+ 1 int: data_types (bit flags for what the stored data is)
- DATA (directly after header)
*totpoint times the data as specified in data_types flags
- simulation type
soft body = 0, particles = 1, cloth = 2
- data types (more can be added easily when needed)
data flag contains
----------------------------------------
index (1<<0) 1 int (index of current point)
location (1<<1) 3 float
velocity (1<<2) 3 float
rotation (1<<3) 4 float (quaternion)
avelocity (1<<4) 3 float (used for particles)
xconst (1<<4) 3 float (used for cloth)
size (1<<5) 1 float
times (1<<6) 3 float (birth, die & lifetime of particle)
boids (1<<7) 1 BoidData
Notes:
- Every frame is not nescessary since data is interpolated for the inbetween frames.
- For now every point is needed for every cached frame, the "index" data type is reserved for future usage.
- For loading external particle caches only "location" data is necessary, other needed values are determined from the given data.
- Non-dynamic data should be written into an info file if external usage is desired.
* Info file is named as normal cache files, but with frame number 0;
* "Non-dynamic" means data such as particle times.
* Written automatically when baking to disk so basically a library of particle simulations should be possible.
- Old disk cache format is supported for reading, so pre 2.5 files shouldn't break. However old style memory cache (added during 2.5 development) is not supported. To keep memory cached simulations convert the cache to disk cache before svn update and save the blend.
- External sb and cloth caches should be perfectly possible, but due to lack of testing these are not yet enabled in ui.
Other changes:
- Multiple point caches per dynamics system.
* In the future these will hopefully be nla editable etc, but for now things are simple and the current (selected) point cache is used.
* Changing the amount of cached points (for example particle count) is allowed, but might not give correct results if multiple caches are present.
- Generalization of point cache baking etc operator & rna code.
- Comb brushing particle hair didn't work smoothly.
2009-08-12 11:54:29 +02:00
|
|
|
struct ListBase ptcaches;
|
2008-01-29 22:01:12 +01:00
|
|
|
} ClothModifierData;
|
|
|
|
|
|
|
|
typedef struct CollisionModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct MVert *x; /* position at the beginning of the frame */
|
|
|
|
struct MVert *xnew; /* position at the end of the frame */
|
|
|
|
struct MVert *xold; /* unsued atm, but was discussed during sprint */
|
|
|
|
struct MVert *current_xnew; /* new position at the actual inter-frame step */
|
|
|
|
struct MVert *current_x; /* position at the actual inter-frame step */
|
2008-03-20 19:28:40 +01:00
|
|
|
struct MVert *current_v; /* (xnew - x) at the actual inter-frame step */
|
2008-01-29 22:01:12 +01:00
|
|
|
|
|
|
|
struct MFace *mfaces; /* object face data */
|
|
|
|
|
|
|
|
unsigned int numverts;
|
|
|
|
unsigned int numfaces;
|
2011-03-18 16:31:32 +01:00
|
|
|
float time_x, time_xnew; /* cfra time of modifier */
|
2008-05-07 22:42:16 +02:00
|
|
|
struct BVHTree *bvhtree; /* bounding volume hierarchy for this cloth object */
|
2008-01-29 22:01:12 +01:00
|
|
|
} CollisionModifierData;
|
|
|
|
|
2009-04-20 17:06:46 +02:00
|
|
|
typedef struct SurfaceModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2009-07-21 01:52:53 +02:00
|
|
|
struct MVert *x; /* old position */
|
|
|
|
struct MVert *v; /* velocity */
|
|
|
|
|
2009-04-20 17:06:46 +02:00
|
|
|
struct DerivedMesh *dm;
|
|
|
|
|
|
|
|
struct BVHTreeFromMesh *bvhtree; /* bounding volume hierarchy of the mesh faces */
|
2009-07-21 01:52:53 +02:00
|
|
|
|
|
|
|
int cfra, numverts;
|
2009-04-20 17:06:46 +02:00
|
|
|
} SurfaceModifierData;
|
|
|
|
|
2005-09-03 19:22:29 +02:00
|
|
|
typedef enum {
|
|
|
|
eBooleanModifierOp_Intersect,
|
|
|
|
eBooleanModifierOp_Union,
|
|
|
|
eBooleanModifierOp_Difference,
|
|
|
|
} BooleanModifierOp;
|
|
|
|
typedef struct BooleanModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object;
|
|
|
|
int operation, pad;
|
|
|
|
} BooleanModifierData;
|
|
|
|
|
2009-09-14 07:00:03 +02:00
|
|
|
#define MOD_MDEF_INVERT_VGROUP (1<<0)
|
|
|
|
#define MOD_MDEF_DYNAMIC_BIND (1<<1)
|
2007-11-11 23:54:14 +01:00
|
|
|
|
2009-11-28 14:33:17 +01:00
|
|
|
#define MOD_MDEF_VOLUME 0
|
|
|
|
#define MOD_MDEF_SURFACE 1
|
|
|
|
|
2007-11-11 23:54:14 +01:00
|
|
|
typedef struct MDefInfluence {
|
|
|
|
int vertex;
|
|
|
|
float weight;
|
|
|
|
} MDefInfluence;
|
|
|
|
|
|
|
|
typedef struct MDefCell {
|
|
|
|
int offset;
|
|
|
|
int totinfluence;
|
|
|
|
} MDefCell;
|
2007-11-06 10:44:34 +01:00
|
|
|
|
2007-11-04 23:00:24 +01:00
|
|
|
typedef struct MeshDeformModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *object; /* mesh object */
|
|
|
|
char defgrp_name[32]; /* optional vertexgroup name */
|
|
|
|
|
2009-11-28 14:33:17 +01:00
|
|
|
short gridsize, flag, mode, pad;
|
2007-11-04 23:00:24 +01:00
|
|
|
|
2010-04-23 13:19:06 +02:00
|
|
|
/* result of static binding */
|
|
|
|
MDefInfluence *bindinfluences; /* influences */
|
|
|
|
int *bindoffsets; /* offsets into influences array */
|
|
|
|
float *bindcagecos; /* coordinates that cage was bound with */
|
2007-11-11 23:54:14 +01:00
|
|
|
int totvert, totcagevert; /* total vertices in mesh and cage */
|
2010-04-23 13:19:06 +02:00
|
|
|
|
|
|
|
/* result of dynamic binding */
|
2007-11-11 23:54:14 +01:00
|
|
|
MDefCell *dyngrid; /* grid with dynamic binding cell points */
|
|
|
|
MDefInfluence *dyninfluences; /* dynamic binding vertex influences */
|
|
|
|
int *dynverts, *pad2; /* is this vertex bound or not? */
|
|
|
|
int dyngridsize; /* size of the dynamic bind grid */
|
|
|
|
int totinfluence; /* total number of vertex influences */
|
|
|
|
float dyncellmin[3]; /* offset of the dynamic bind grid */
|
|
|
|
float dyncellwidth; /* width of dynamic bind cell */
|
|
|
|
float bindmat[4][4]; /* matrix of cage at binding time */
|
2009-11-05 19:05:55 +01:00
|
|
|
|
2010-04-23 13:19:06 +02:00
|
|
|
/* deprecated storage */
|
|
|
|
float *bindweights; /* deprecated inefficient storage */
|
|
|
|
float *bindcos; /* deprecated storage of cage coords */
|
|
|
|
|
2009-11-05 19:05:55 +01:00
|
|
|
/* runtime */
|
2010-07-05 13:48:13 +02:00
|
|
|
void (*bindfunc)(struct Scene *scene,
|
2009-11-28 14:33:17 +01:00
|
|
|
struct MeshDeformModifierData *mmd,
|
2009-11-05 19:05:55 +01:00
|
|
|
float *vertexcos, int totvert, float cagemat[][4]);
|
2007-11-04 23:00:24 +01:00
|
|
|
} MeshDeformModifierData;
|
|
|
|
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
typedef enum {
|
2010-10-30 12:19:30 +02:00
|
|
|
eParticleSystemFlag_Pars = (1<<0),
|
|
|
|
eParticleSystemFlag_psys_updated = (1<<1),
|
2011-01-07 18:27:27 +01:00
|
|
|
eParticleSystemFlag_file_loaded = (1<<2),
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
} ParticleSystemModifierFlag;
|
|
|
|
|
|
|
|
typedef struct ParticleSystemModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
struct ParticleSystem *psys;
|
|
|
|
struct DerivedMesh *dm;
|
2007-12-02 16:54:54 +01:00
|
|
|
int totdmvert, totdmedge, totdmface;
|
|
|
|
short flag, rt;
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
} ParticleSystemModifierData;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
eParticleInstanceFlag_Parents = (1<<0),
|
|
|
|
eParticleInstanceFlag_Children = (1<<1),
|
|
|
|
eParticleInstanceFlag_Path = (1<<2),
|
|
|
|
eParticleInstanceFlag_Unborn = (1<<3),
|
|
|
|
eParticleInstanceFlag_Alive = (1<<4),
|
|
|
|
eParticleInstanceFlag_Dead = (1<<5),
|
2009-07-04 05:50:12 +02:00
|
|
|
eParticleInstanceFlag_KeepShape = (1<<6),
|
2009-07-05 14:36:20 +02:00
|
|
|
eParticleInstanceFlag_UseSize = (1<<7),
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
} ParticleInstanceModifierFlag;
|
|
|
|
|
|
|
|
typedef struct ParticleInstanceModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
struct Object *ob;
|
2009-07-04 05:50:12 +02:00
|
|
|
short psys, flag, axis, rt;
|
|
|
|
float position, random_position;
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
} ParticleInstanceModifierData;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
eExplodeFlag_CalcFaces = (1<<0),
|
2010-04-06 10:43:52 +02:00
|
|
|
eExplodeFlag_PaSize = (1<<1),
|
2011-02-23 20:29:59 +01:00
|
|
|
eExplodeFlag_EdgeCut = (1<<2),
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
eExplodeFlag_Unborn = (1<<3),
|
|
|
|
eExplodeFlag_Alive = (1<<4),
|
|
|
|
eExplodeFlag_Dead = (1<<5),
|
|
|
|
} ExplodeModifierFlag;
|
|
|
|
|
|
|
|
typedef struct ExplodeModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
int *facepa;
|
|
|
|
short flag, vgroup;
|
|
|
|
float protect;
|
2011-02-23 20:29:59 +01:00
|
|
|
char uvname[32];
|
Particles
=========
Merge of the famous particle patch by Janne Karhu, a full rewrite
of the Blender particle system. This includes:
- Emitter, Hair and Reactor particle types.
- Newtonian, Keyed and Boids physics.
- Various particle visualisation and rendering types.
- Vertex group and texture control for various properties.
- Interpolated child particles from parents.
- Hair editing with combing, growing, cutting, .. .
- Explode modifier.
- Harmonic, Magnetic fields, and multiple falloff types.
.. and lots of other things, some more info is here:
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite
http://wiki.blender.org/index.php/BlenderDev/Particles_Rewrite_Doc
The new particle system cannot be backwards compatible. Old particle
systems are being converted to the new system, but will require
tweaking to get them looking the same as before.
Point Cache
===========
The new system to replace manual baking, based on automatic caching
on disk. This is currently used by softbodies and the particle system.
See the Cache API section on:
http://wiki.blender.org/index.php/BlenderDev/PhysicsSprint
Documentation
=============
These new features still need good docs for the release logs, help
for this is appreciated.
2007-11-26 23:09:57 +01:00
|
|
|
} ExplodeModifierData;
|
|
|
|
|
2009-01-06 19:59:03 +01:00
|
|
|
typedef struct MultiresModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2009-11-25 15:07:12 +01:00
|
|
|
char lvl, sculptlvl, renderlvl, totlvl;
|
2009-12-09 14:37:19 +01:00
|
|
|
char simple, flags, pad[2];
|
2009-01-06 19:59:03 +01:00
|
|
|
} MultiresModifierData;
|
|
|
|
|
2009-12-09 14:37:19 +01:00
|
|
|
typedef enum {
|
|
|
|
eMultiresModifierFlag_ControlEdges = (1<<0),
|
|
|
|
} MultiresModifierFlag;
|
|
|
|
|
2008-07-25 20:57:16 +02:00
|
|
|
typedef struct FluidsimModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2010-04-25 17:24:18 +02:00
|
|
|
struct FluidsimSettings *fss; /* definition is in DNA_object_fluidsim.h */
|
2008-07-25 20:57:16 +02:00
|
|
|
struct PointCache *point_cache; /* definition is in DNA_object_force.h */
|
|
|
|
} FluidsimModifierData;
|
|
|
|
|
2008-04-23 14:44:10 +02:00
|
|
|
typedef struct ShrinkwrapModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2008-04-25 20:22:20 +02:00
|
|
|
struct Object *target; /* shrink target */
|
2008-08-12 22:43:10 +02:00
|
|
|
struct Object *auxTarget; /* additional shrink target */
|
2008-04-25 20:22:20 +02:00
|
|
|
char vgroup_name[32]; /* optional vertexgroup name */
|
2008-08-13 19:34:09 +02:00
|
|
|
float keepDist; /* distance offset to keep from mesh/projection point */
|
2008-04-23 14:44:10 +02:00
|
|
|
short shrinkType; /* shrink type projection */
|
2008-05-02 02:16:48 +02:00
|
|
|
short shrinkOpts; /* shrink options */
|
2008-08-12 22:43:10 +02:00
|
|
|
char projAxis; /* axis to project over */
|
2008-08-14 05:05:13 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* if using projection over vertex normal this controls the
|
|
|
|
* the level of subsurface that must be done before getting the
|
|
|
|
* vertex coordinates and normal
|
|
|
|
*/
|
|
|
|
char subsurfLevels;
|
|
|
|
|
|
|
|
char pad[6];
|
2008-06-17 21:00:21 +02:00
|
|
|
|
2008-04-23 14:44:10 +02:00
|
|
|
} ShrinkwrapModifierData;
|
|
|
|
|
|
|
|
/* Shrinkwrap->shrinkType */
|
2008-04-27 21:29:40 +02:00
|
|
|
#define MOD_SHRINKWRAP_NEAREST_SURFACE 0
|
2008-08-12 22:43:10 +02:00
|
|
|
#define MOD_SHRINKWRAP_PROJECT 1
|
2008-04-27 21:29:40 +02:00
|
|
|
#define MOD_SHRINKWRAP_NEAREST_VERTEX 2
|
2008-04-23 14:44:10 +02:00
|
|
|
|
2008-05-02 02:16:48 +02:00
|
|
|
/* Shrinkwrap->shrinkOpts */
|
2008-08-12 22:43:10 +02:00
|
|
|
#define MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR (1<<0) /* allow shrinkwrap to move the vertex in the positive direction of axis */
|
|
|
|
#define MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR (1<<1) /* allow shrinkwrap to move the vertex in the negative direction of axis */
|
2008-04-23 14:44:10 +02:00
|
|
|
|
2008-08-12 22:43:10 +02:00
|
|
|
#define MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE (1<<3) /* ignore vertex moves if a vertex ends projected on a front face of the target */
|
|
|
|
#define MOD_SHRINKWRAP_CULL_TARGET_BACKFACE (1<<4) /* ignore vertex moves if a vertex ends projected on a back face of the target */
|
|
|
|
|
2008-08-13 19:34:09 +02:00
|
|
|
#define MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE (1<<5) /* distance is measure to the front face of the target */
|
2008-08-12 22:43:10 +02:00
|
|
|
|
|
|
|
#define MOD_SHRINKWRAP_PROJECT_OVER_X_AXIS (1<<0)
|
|
|
|
#define MOD_SHRINKWRAP_PROJECT_OVER_Y_AXIS (1<<1)
|
|
|
|
#define MOD_SHRINKWRAP_PROJECT_OVER_Z_AXIS (1<<2)
|
|
|
|
#define MOD_SHRINKWRAP_PROJECT_OVER_NORMAL 0 /* projection over normal is used if no axis is selected */
|
2008-05-31 03:25:24 +02:00
|
|
|
|
2008-07-19 00:24:20 +02:00
|
|
|
|
2008-06-24 14:04:27 +02:00
|
|
|
typedef struct SimpleDeformModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
|
|
|
struct Object *origin; /* object to control the origin of modifier space coordinates */
|
2008-07-04 21:56:31 +02:00
|
|
|
char vgroup_name[32]; /* optional vertexgroup name */
|
2008-08-04 15:12:35 +02:00
|
|
|
float factor; /* factors to control simple deforms */
|
|
|
|
float limit[2]; /* lower and upper limit */
|
2008-07-04 21:56:31 +02:00
|
|
|
|
2008-08-04 15:12:35 +02:00
|
|
|
char mode; /* deform function */
|
|
|
|
char axis; /* lock axis (for taper and strech) */
|
2008-08-15 02:51:44 +02:00
|
|
|
char originOpts; /* originOptions */
|
|
|
|
char pad;
|
2008-06-24 14:04:27 +02:00
|
|
|
|
|
|
|
} SimpleDeformModifierData;
|
|
|
|
|
2008-08-04 15:12:35 +02:00
|
|
|
#define MOD_SIMPLEDEFORM_MODE_TWIST 1
|
|
|
|
#define MOD_SIMPLEDEFORM_MODE_BEND 2
|
|
|
|
#define MOD_SIMPLEDEFORM_MODE_TAPER 3
|
|
|
|
#define MOD_SIMPLEDEFORM_MODE_STRETCH 4
|
|
|
|
|
|
|
|
#define MOD_SIMPLEDEFORM_LOCK_AXIS_X (1<<0)
|
|
|
|
#define MOD_SIMPLEDEFORM_LOCK_AXIS_Y (1<<1)
|
2008-06-27 18:45:37 +02:00
|
|
|
|
2008-08-15 02:51:44 +02:00
|
|
|
/* indicates whether simple deform should use the local
|
|
|
|
coordinates or global coordinates of origin */
|
|
|
|
#define MOD_SIMPLEDEFORM_ORIGIN_LOCAL (1<<0)
|
|
|
|
|
2009-08-21 04:51:56 +02:00
|
|
|
#define MOD_UVPROJECT_MAX 10
|
|
|
|
|
2009-10-22 18:35:51 +02:00
|
|
|
typedef struct ShapeKeyModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
} ShapeKeyModifierData;
|
|
|
|
|
2009-12-21 02:02:08 +01:00
|
|
|
typedef struct SolidifyModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
|
2010-01-26 10:36:33 +01:00
|
|
|
char defgrp_name[32]; /* name of vertex group to use */
|
2009-12-21 02:02:08 +01:00
|
|
|
float offset; /* new surface offset level*/
|
2010-03-31 09:28:23 +02:00
|
|
|
float offset_fac; /* midpoint of the offset */
|
2009-12-21 02:02:08 +01:00
|
|
|
float crease_inner;
|
|
|
|
float crease_outer;
|
|
|
|
float crease_rim;
|
|
|
|
int flag;
|
2011-03-03 06:09:07 +01:00
|
|
|
short mat_ofs;
|
|
|
|
short mat_ofs_rim;
|
|
|
|
int pad;
|
2009-12-21 02:02:08 +01:00
|
|
|
} SolidifyModifierData;
|
|
|
|
|
|
|
|
#define MOD_SOLIDIFY_RIM (1<<0)
|
|
|
|
#define MOD_SOLIDIFY_EVEN (1<<1)
|
|
|
|
#define MOD_SOLIDIFY_NORMAL_CALC (1<<2)
|
2010-03-31 09:28:23 +02:00
|
|
|
#define MOD_SOLIDIFY_VGROUP_INV (1<<3)
|
2011-03-03 06:09:07 +01:00
|
|
|
#define MOD_SOLIDIFY_RIM_MATERIAL (1<<4) /* deprecated, used in do_versions */
|
2009-12-21 02:02:08 +01:00
|
|
|
|
2010-03-22 01:22:52 +01:00
|
|
|
typedef struct ScrewModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
struct Object *ob_axis;
|
|
|
|
int steps;
|
|
|
|
int render_steps;
|
|
|
|
int iter;
|
|
|
|
float screw_ofs;
|
|
|
|
float angle;
|
|
|
|
short axis;
|
|
|
|
short flag;
|
|
|
|
} ScrewModifierData;
|
|
|
|
|
|
|
|
#define MOD_SCREW_NORMAL_FLIP (1<<0)
|
|
|
|
#define MOD_SCREW_NORMAL_CALC (1<<1)
|
|
|
|
#define MOD_SCREW_OBJECT_OFFSET (1<<2)
|
|
|
|
// #define MOD_SCREW_OBJECT_ANGLE (1<<4)
|
|
|
|
|
2011-03-25 01:32:38 +01:00
|
|
|
typedef struct NgonInterpModifierData {
|
|
|
|
ModifierData modifier;
|
|
|
|
int resolution, pad0;
|
|
|
|
} NgonInterpModifierData;
|
|
|
|
|
2011-05-09 01:43:18 +02:00
|
|
|
typedef struct WarpModifierData {
|
|
|
|
ModifierData modifier;
|
2011-05-01 17:16:59 +02:00
|
|
|
/* keep in sync with MappingInfoModifierData */
|
|
|
|
struct Tex *texture;
|
|
|
|
struct Object *map_object;
|
|
|
|
char uvlayer_name[32];
|
|
|
|
int uvlayer_tmp;
|
|
|
|
int texmapping;
|
|
|
|
int pad10;
|
|
|
|
/* end MappingInfoModifierData */
|
|
|
|
|
|
|
|
float strength;
|
|
|
|
|
|
|
|
struct Object *object_from;
|
|
|
|
struct Object *object_to;
|
|
|
|
struct CurveMapping *curfalloff;
|
|
|
|
char defgrp_name[32]; /* optional vertexgroup name */
|
|
|
|
float falloff_radius;
|
|
|
|
char flag; /* not used yet */
|
|
|
|
char falloff_type;
|
|
|
|
char pad[2];
|
|
|
|
} WarpModifierData;
|
|
|
|
|
|
|
|
#define MOD_WARP_VOLUME_PRESERVE 1
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
eWarp_Falloff_None = 0,
|
|
|
|
eWarp_Falloff_Curve = 1,
|
|
|
|
eWarp_Falloff_Sharp = 2, /* PROP_SHARP */
|
|
|
|
eWarp_Falloff_Smooth = 3, /* PROP_SMOOTH */
|
|
|
|
eWarp_Falloff_Root = 4, /* PROP_ROOT */
|
|
|
|
eWarp_Falloff_Linear = 5, /* PROP_LIN */
|
|
|
|
eWarp_Falloff_Const = 6, /* PROP_CONST */
|
|
|
|
eWarp_Falloff_Sphere = 7, /* PROP_SPHERE */
|
|
|
|
/* PROP_RANDOM not used */
|
|
|
|
} WarpModifierFalloff;
|
2011-03-25 01:32:38 +01:00
|
|
|
|
2005-07-19 22:14:17 +02:00
|
|
|
#endif
|