Blender V5.3
lattice_deform.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_simd.hh"
#include "BLI_task_c.hh"
#include "BLI_utildefines.hh"
#include "DNA_curve_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BKE_curve.hh"
#include "BKE_displist.h"
#include "BKE_editmesh.hh"
#include "BKE_key.hh"
#include "BKE_lattice.hh"
#include "BKE_modifier.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_deform.hh"

Go to the source code of this file.

Classes

struct  blender::LatticeDeformData
struct  blender::LatticeDeformUserdata

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Deform 3D Coordinates by Lattice (<tt>lattice_deform.cc</tt>)
LatticeDeformData * blender::BKE_lattice_deform_data_create (const Object *oblatt, const Object *ob) ATTR_WARN_UNUSED_RESULT
void blender::BKE_lattice_deform_data_eval_co (LatticeDeformData *lattice_deform_data, float co[3], float weight)
void blender::BKE_lattice_deform_data_destroy (LatticeDeformData *lattice_deform_data)
void blender::BKE_lattice_deform_coords (const Object *ob_lattice, const Object *ob_target, float(*vert_coords)[3], int vert_coords_len, short flag, const char *defgrp_name, float fac)
void blender::BKE_lattice_deform_coords_with_mesh (const Object *ob_lattice, const Object *ob_target, float(*vert_coords)[3], int vert_coords_len, short flag, const char *defgrp_name, float fac, const Mesh *me_target)
void blender::BKE_lattice_deform_coords_with_editmesh (const Object *ob_lattice, const Object *ob_target, float(*vert_coords)[3], int vert_coords_len, short flag, const char *defgrp_name, float fac, const BMesh &bm_target)
Lattice Deform API
static float blender::lattice_deform_axis_clamp (const float value, const int points_num)
Lattice Deform #BKE_lattice_deform_coords API

BKE_lattice_deform_coords and related functions.

static void blender::lattice_deform_vert_with_dvert (const LatticeDeformUserdata *data, const int index, const MDeformVert *dvert)
static void blender::lattice_deform_vert_task (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict)
static void blender::lattice_vert_task_editmesh (void *__restrict userdata, MempoolIterData *iter, const TaskParallelTLS *__restrict)
static void blender::lattice_vert_task_editmesh_no_dvert (void *__restrict userdata, MempoolIterData *iter, const TaskParallelTLS *__restrict)
static void blender::lattice_deform_coords_impl (const Object *ob_lattice, const Object *ob_target, float(*vert_coords)[3], const int vert_coords_len, const short flag, const char *defgrp_name, const float fac, const Mesh *me_target, const BMesh *bm_target)

Detailed Description

Deform coordinates by a lattice object (used by modifier).

Definition in file lattice_deform.cc.