Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_weightvgproximity.c
| Show All 29 Lines | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_rand.h" | #include "BLI_rand.h" | ||||
| #include "BLI_task.h" | #include "BLI_task.h" | ||||
| #include "CLG_log.h" | |||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_meshdata_types.h" | #include "DNA_meshdata_types.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "BKE_bvhutils.h" | #include "BKE_bvhutils.h" | ||||
| #include "BKE_curve.h" | #include "BKE_curve.h" | ||||
| #include "BKE_customdata.h" | #include "BKE_customdata.h" | ||||
| Show All 20 Lines | |||||
| # include "PIL_time_utildefines.h" | # include "PIL_time_utildefines.h" | ||||
| #endif | #endif | ||||
| /************************************** | /************************************** | ||||
| * Util functions. * | * Util functions. * | ||||
| **************************************/ | **************************************/ | ||||
| /* Util macro. */ | /* Util macro. */ | ||||
| #define OUT_OF_MEMORY() ((void)printf("WeightVGProximity: Out of memory.\n")) | #define OUT_OF_MEMORY() CLOG_ERROR(&LOG, "Out of memory.") | ||||
| static CLG_LogRef LOG = {"mod.weightvgproximity"}; | |||||
| typedef struct Vert2GeomData { | typedef struct Vert2GeomData { | ||||
| /* Read-only data */ | /* Read-only data */ | ||||
| float (*v_cos)[3]; | float (*v_cos)[3]; | ||||
| const SpaceTransform *loc2trgt; | const SpaceTransform *loc2trgt; | ||||
| BVHTreeFromMesh *treeData[3]; | BVHTreeFromMesh *treeData[3]; | ||||
| ▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines | |||||