Blender V5.3
MOD_surfacedeform.cc File Reference
#include "BKE_bvh.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_task_c.hh"
#include "BLT_translation.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_bvhutils.hh"
#include "BKE_deform.hh"
#include "BKE_lib_query.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_modifier.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "BLO_read_write.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "DEG_depsgraph.hh"
#include "MEM_guardedalloc.h"
#include "MOD_ui_common.hh"
#include "MOD_util.hh"

Go to the source code of this file.

Classes

struct  blender::SDefAdjacency
struct  blender::SDefAdjacencyArray
struct  blender::SDefEdgePolys
struct  blender::SDefBindCalcData
struct  blender::SDefBindPoly
struct  blender::SDefBindWeightData
struct  blender::SDefDeformData
class  blender::BindVertsImplicitSharing

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  {
  blender::MOD_SDEF_BIND_RESULT_SUCCESS = 1 , blender::MOD_SDEF_BIND_RESULT_GENERIC_ERR = 0 , blender::MOD_SDEF_BIND_RESULT_MEM_ERR = -1 , blender::MOD_SDEF_BIND_RESULT_NONMANY_ERR = -2 ,
  blender::MOD_SDEF_BIND_RESULT_CONCAVE_ERR = -3 , blender::MOD_SDEF_BIND_RESULT_OVERLAP_ERR = -4
}
enum  { blender::MOD_SDEF_INFINITE_WEIGHT_ANGULAR = (1 << 0) , blender::MOD_SDEF_INFINITE_WEIGHT_DIST_PROJ = (1 << 1) , blender::MOD_SDEF_INFINITE_WEIGHT_DIST = (1 << 2) }

Functions

static void blender::init_data (ModifierData *md)
static void blender::required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
static void blender::free_data (ModifierData *md)
static void blender::copy_data (const ModifierData *md, ModifierData *target, const int flag)
static void blender::foreach_ID_link (ModifierData *md, Object *ob, IDWalkFunc walk, void *user_data)
static void blender::update_depsgraph (ModifierData *md, const ModifierUpdateDepsgraphContext *ctx)
static void blender::freeAdjacencyMap (SDefAdjacencyArray *const vert_edges, SDefAdjacency *const adj_ref, SDefEdgePolys *const edge_polys)
static int blender::buildAdjacencyMap (const OffsetIndices< int > polys, const Span< int2 > edges, const Span< int > corner_edges, SDefAdjacencyArray *const vert_edges, SDefAdjacency *adj, SDefEdgePolys *const edge_polys)
BLI_INLINE void blender::sortPolyVertsEdge (uint *indices, const int *const corner_verts, const int *const corner_edges, const uint edge, const uint num)
BLI_INLINE void blender::sortPolyVertsTri (uint *indices, const int *const corner_verts, const uint loopstart, const uint num)
BLI_INLINE uint blender::nearestVert (SDefBindCalcData *const data, const float point_co[3])
BLI_INLINE int blender::isPolyValid (const float coords[][2], const uint nr)
static void blender::freeBindData (SDefBindWeightData *const bwdata)
BLI_INLINE float blender::computeAngularWeight (const float point_angle, const float edgemid_angle)
BLI_INLINE SDefBindWeightData * blender::computeBindWeights (SDefBindCalcData *const data, const float point_co[3])
BLI_INLINE float blender::computeNormalDisplacement (const float point_co[3], const float point_co_proj[3], const float normal[3])
static void blender::bindVert (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict)
static void blender::compactSparseBinds (SurfaceDeformModifierData *smd)
static bool blender::surfacedeformBind (Object *ob, SurfaceDeformModifierData *smd_orig, SurfaceDeformModifierData *smd_eval, float(*vertexCos)[3], uint verts_num, uint target_faces_num, uint target_verts_num, Mesh *target, Mesh *mesh)
static void blender::deformVert (void *__restrict userdata, const int index, const TaskParallelTLS *__restrict)
static void blender::surfacedeformModifier_do (ModifierData *md, const ModifierEvalContext *ctx, float(*vertexCos)[3], uint verts_num, Object *ob, Mesh *mesh)
static void blender::deform_verts (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions)
static bool blender::is_disabled (const Scene *, ModifierData *md, bool)
static void blender::panel_draw (const bContext *, Panel *panel)
static void blender::panel_register (ARegionType *region_type)
static void blender::blend_write (BlendWriter *writer, const ID *id_owner, const ModifierData *md)
static void blender::blend_read (BlendDataReader *reader, ModifierData *md)

Variables

ModifierTypeInfo blender::modifierType_SurfaceDeform