Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_explode.c
| Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | |||||
| #define GET_ES(v1, v2) edgecut_get(eh, v1, v2) | #define GET_ES(v1, v2) edgecut_get(eh, v1, v2) | ||||
| #define INT_UV(uvf, c0, c1) mid_v2_v2v2(uvf, mf->uv[c0], mf->uv[c1]) | #define INT_UV(uvf, c0, c1) mid_v2_v2v2(uvf, mf->uv[c0], mf->uv[c1]) | ||||
| static void remap_faces_3_6_9_12(Mesh *mesh, | static void remap_faces_3_6_9_12(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3, | int v3, | ||||
| int v4) | int v4) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | for (l = 0; l < numlayer; l++) { | ||||
| copy_v2_v2(df3->uv[2], mf->uv[c3]); | copy_v2_v2(df3->uv[2], mf->uv[c3]); | ||||
| } | } | ||||
| } | } | ||||
| static void remap_faces_5_10(Mesh *mesh, | static void remap_faces_5_10(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3, | int v3, | ||||
| int v4) | int v4) | ||||
| { | { | ||||
| Show All 39 Lines | for (l = 0; l < numlayer; l++) { | ||||
| copy_v2_v2(df2->uv[3], mf->uv[c3]); | copy_v2_v2(df2->uv[3], mf->uv[c3]); | ||||
| } | } | ||||
| } | } | ||||
| static void remap_faces_15(Mesh *mesh, | static void remap_faces_15(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3, | int v3, | ||||
| int v4) | int v4) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | for (l = 0; l < numlayer; l++) { | ||||
| copy_v2_v2(df4->uv[3], mf->uv[c3]); | copy_v2_v2(df4->uv[3], mf->uv[c3]); | ||||
| } | } | ||||
| } | } | ||||
| static void remap_faces_7_11_13_14(Mesh *mesh, | static void remap_faces_7_11_13_14(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3, | int v3, | ||||
| int v4) | int v4) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | for (l = 0; l < numlayer; l++) { | ||||
| copy_v2_v2(df3->uv[3], mf->uv[c3]); | copy_v2_v2(df3->uv[3], mf->uv[c3]); | ||||
| } | } | ||||
| } | } | ||||
| static void remap_faces_19_21_22(Mesh *mesh, | static void remap_faces_19_21_22(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3) | int v3) | ||||
| { | { | ||||
| MFace *df1 = get_dface(mesh, split, cur, i, mf); | MFace *df1 = get_dface(mesh, split, cur, i, mf); | ||||
| Show All 37 Lines | for (l = 0; l < numlayer; l++) { | ||||
| INT_UV(df2->uv[3], c0, c2); | INT_UV(df2->uv[3], c0, c2); | ||||
| } | } | ||||
| } | } | ||||
| static void remap_faces_23(Mesh *mesh, | static void remap_faces_23(Mesh *mesh, | ||||
| Mesh *split, | Mesh *split, | ||||
| MFace *mf, | MFace *mf, | ||||
| int *facepa, | int *facepa, | ||||
| int *vertpa, | const int *vertpa, | ||||
| int i, | int i, | ||||
| EdgeHash *eh, | EdgeHash *eh, | ||||
| int cur, | int cur, | ||||
| int v1, | int v1, | ||||
| int v2, | int v2, | ||||
| int v3) | int v3) | ||||
| { | { | ||||
| MFace *df1 = get_dface(mesh, split, cur, i, mf); | MFace *df1 = get_dface(mesh, split, cur, i, mf); | ||||
| ▲ Show 20 Lines • Show All 676 Lines • Show Last 20 Lines | |||||