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:
authorTon Roosendaal <ton@blender.org>2004-09-14 23:03:11 +0400
committerTon Roosendaal <ton@blender.org>2004-09-14 23:03:11 +0400
commit37f57288cbcdb54770a8b01d74a323d62251fe9e (patch)
tree6f0316050cbc80fb66408d3dfb43705c273fd2ef /source/blender/blenkernel/BKE_deform.h
parent807339b4a7a0be25fbdc3de32e2c264f3f0b1e5a (diff)
Lot of code... 2 new features:
1) Curve deform http://www.blender3d.org/cms/Curve_Deform.392.0.html Works simple as expected, but keep track of the rotation axis in F7 buttons (Track X Y Z) Only Mesh deform supported now. Code changes: - centralized deformation calls in curve_modifiers() mesh_modifiers() etcetera. Here also other effects can be added like wave. Now the evaluation order is fixed, but should become optional. It also doesnt use the Displist anymore as deform-input. That latter part is unfinished yet. This code also is used for Hooks and will be needed for softbody - made convention stricter that displists are being checked on in drawobject(), this to prevent routines to make new displists recursively (like armature does). Now a freedisplist() is sufficient to signal that a new displaylist should be made. 2) Object Hooks http://www.blender3d.org/cms/Object_Hooks.391.0.html Support for Hooks is added to Mesh, Lattice, Curve and Surface objects. For Armatures this would require some more work & research. Main goal for this feature is to provide quick & simple access to the underlying geometry in Objects on Object level, supporting hierarchies and Ipos etc.
Diffstat (limited to 'source/blender/blenkernel/BKE_deform.h')
-rw-r--r--source/blender/blenkernel/BKE_deform.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_deform.h b/source/blender/blenkernel/BKE_deform.h
index e7494f28fc4..411225b0635 100644
--- a/source/blender/blenkernel/BKE_deform.h
+++ b/source/blender/blenkernel/BKE_deform.h
@@ -1,8 +1,8 @@
/* BKE_deform.h June 2001
*
- * support for deformation groups
+ * support for deformation groups and hooks
*
- * Reevan McKay
+ * Reevan McKay et al
*
* $Id$
*
@@ -46,5 +46,12 @@ void copy_defgroups (struct ListBase *lb1, struct ListBase *lb2);
struct bDeformGroup* copy_defgroup (struct bDeformGroup *ingroup);
void color_temperature (float input, unsigned char *r, unsigned char *g, unsigned char *b);
+void hook_object_deform(struct Object *ob, int index, float *vec);
+
+int curve_modifier(struct Object *ob, char mode);
+int mesh_modifier(struct Object *ob, char mode);
+int lattice_modifier(struct Object *ob, char mode);
+
+
#endif