This allows to mix between the result of 2 modifiers, with both using the same input state. This is useful for having a mesh deform and armature deform working together. However! This functionality could have been presented better... this is actually Node editor stuff! Now it works by adding a "MM" button, next to the "overall vgroup" option. If MM is pressed, the input of this modifier is the same as the input of the previous modifier. Only the armature modifier has this option now...
75 lines
2.8 KiB
C++
75 lines
2.8 KiB
C++
/**
|
|
* $Id$
|
|
*
|
|
* ***** BEGIN GPL/BL DUAL 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. The Blender
|
|
* Foundation also sells licenses for use in proprietary software under
|
|
* the Blender License. See http://www.blender.org/BL/ for information
|
|
* about this.
|
|
*
|
|
* 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,
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
* All rights reserved.
|
|
*
|
|
* The Original Code is: all of this file.
|
|
*
|
|
* Contributor(s): none yet.
|
|
*
|
|
* ***** END GPL/BL DUAL LICENSE BLOCK *****
|
|
* june-2001 ton
|
|
*/
|
|
|
|
#ifndef BKE_LATTICE_H
|
|
#define BKE_LATTICE_H
|
|
|
|
struct Lattice;
|
|
struct Object;
|
|
struct DerivedMesh;
|
|
struct BPoint;
|
|
|
|
extern struct Lattice *editLatt;
|
|
|
|
|
|
void resizelattice(struct Lattice *lt, int u, int v, int w, struct Object *ltOb);
|
|
struct Lattice *add_lattice(char *name);
|
|
struct Lattice *copy_lattice(struct Lattice *lt);
|
|
void free_lattice(struct Lattice *lt);
|
|
void make_local_lattice(struct Lattice *lt);
|
|
void calc_lat_fudu(int flag, int res, float *fu, float *du);
|
|
void init_latt_deform(struct Object *oblatt, struct Object *ob);
|
|
void calc_latt_deform(float *co, float weight);
|
|
void end_latt_deform(void);
|
|
int object_deform_mball(struct Object *ob);
|
|
void outside_lattice(struct Lattice *lt);
|
|
void curve_deform_verts(struct Object *cuOb, struct Object *target,
|
|
struct DerivedMesh *dm, float (*vertexCos)[3],
|
|
int numVerts, char *vgroup, short defaxis);
|
|
void curve_deform_vector(struct Object *cuOb, struct Object *target,
|
|
float *orco, float *vec, float mat[][3], int no_rot_axis);
|
|
|
|
void lattice_deform_verts(struct Object *laOb, struct Object *target,
|
|
struct DerivedMesh *dm, float (*vertexCos)[3],
|
|
int numVerts, char *vgroup);
|
|
void armature_deform_verts(struct Object *armOb, struct Object *target,
|
|
struct DerivedMesh *dm, float (*vertexCos)[3],
|
|
float (*defMats)[3][3], int numVerts, int deformflag,
|
|
float (*prevCos)[3], const char *defgrp_name);
|
|
float (*lattice_getVertexCos(struct Object *ob, int *numVerts_r))[3];
|
|
void lattice_applyVertexCos(struct Object *ob, float (*vertexCos)[3]);
|
|
void lattice_calc_modifiers(struct Object *ob);
|
|
|
|
#endif
|
|
|