Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_solidify_nonmanifold.c
| Context not available. | |||||
| const float ofs_front = (smd->offset_fac + 1.0f) * 0.5f * smd->offset; | const float ofs_front = (smd->offset_fac + 1.0f) * 0.5f * smd->offset; | ||||
| const float ofs_back = ofs_front - smd->offset * smd->offset_fac; | const float ofs_back = ofs_front - smd->offset * smd->offset_fac; | ||||
| const float ofs_front_clamped = max_ff(1e-5f, fabsf(smd->offset > 0 ? ofs_front : ofs_back)); | const float ofs_front_clamped = max_ff(1e-5f, fabsf(smd->offset > 0 ? ofs_front : ofs_back)) * signf(smd->offset > 0 ? ofs_front : ofs_back); | ||||
| const float ofs_back_clamped = max_ff(1e-5f, fabsf(smd->offset > 0 ? ofs_back : ofs_front)); | const float ofs_back_clamped = max_ff(1e-5f, fabsf(smd->offset > 0 ? ofs_back : ofs_front)) * signf(smd->offset > 0 ? ofs_back : ofs_front); | ||||
| const float offset_fac_vg = smd->offset_fac_vg; | const float offset_fac_vg = smd->offset_fac_vg; | ||||
| const float offset_fac_vg_inv = 1.0f - smd->offset_fac_vg; | const float offset_fac_vg_inv = 1.0f - smd->offset_fac_vg; | ||||
| const float offset = fabsf(smd->offset) * smd->offset_clamp; | const float offset = fabsf(smd->offset) * smd->offset_clamp; | ||||
| Context not available. | |||||