Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_remesh.c
| Show All 23 Lines | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BLI_math_base.h" | #include "BLI_math_base.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "BLT_translation.h" | #include "BLT_translation.h" | ||||
| #include "DNA_defaults.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 "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| Show All 18 Lines | |||||
| # include "dualcon.h" | # include "dualcon.h" | ||||
| #endif | #endif | ||||
| static void initData(ModifierData *md) | static void initData(ModifierData *md) | ||||
| { | { | ||||
| RemeshModifierData *rmd = (RemeshModifierData *)md; | RemeshModifierData *rmd = (RemeshModifierData *)md; | ||||
| rmd->scale = 0.9; | BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(rmd, modifier)); | ||||
| rmd->depth = 4; | |||||
| rmd->hermite_num = 1; | MEMCPY_STRUCT_AFTER(rmd, DNA_struct_default_get(RemeshModifierData), modifier); | ||||
| rmd->flag = MOD_REMESH_FLOOD_FILL; | |||||
| rmd->mode = MOD_REMESH_VOXEL; | |||||
| rmd->threshold = 1; | |||||
| rmd->voxel_size = 0.1f; | |||||
| rmd->adaptivity = 0.0f; | |||||
| } | } | ||||
| #ifdef WITH_MOD_REMESH | #ifdef WITH_MOD_REMESH | ||||
| static void init_dualcon_mesh(DualConInput *input, Mesh *mesh) | static void init_dualcon_mesh(DualConInput *input, Mesh *mesh) | ||||
| { | { | ||||
| memset(input, 0, sizeof(DualConInput)); | memset(input, 0, sizeof(DualConInput)); | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||