Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/curve.c
| Show First 20 Lines • Show All 321 Lines • ▼ Show 20 Lines | IDTypeInfo IDType_ID_CU = { | ||||
| .foreach_cache = NULL, | .foreach_cache = NULL, | ||||
| .blend_write = curve_blend_write, | .blend_write = curve_blend_write, | ||||
| .blend_read_data = curve_blend_read_data, | .blend_read_data = curve_blend_read_data, | ||||
| .blend_read_lib = curve_blend_read_lib, | .blend_read_lib = curve_blend_read_lib, | ||||
| .blend_read_expand = curve_blend_read_expand, | .blend_read_expand = curve_blend_read_expand, | ||||
| .blend_read_undo_preserve = NULL, | .blend_read_undo_preserve = NULL, | ||||
| .lib_override_apply_post = NULL, | |||||
| }; | }; | ||||
| static int cu_isectLL(const float v1[3], | static int cu_isectLL(const float v1[3], | ||||
| const float v2[3], | const float v2[3], | ||||
| const float v3[3], | const float v3[3], | ||||
| const float v4[3], | const float v4[3], | ||||
| short cox, | short cox, | ||||
| short coy, | short coy, | ||||
| ▲ Show 20 Lines • Show All 2,030 Lines • ▼ Show 20 Lines | if (bl->poly != -1) { /* check for cyclic */ | ||||
| * the rotation gradually over the entire curve | * the rotation gradually over the entire curve | ||||
| * | * | ||||
| * note that the split is between last and second last, rather than first/last as youd expect. | * note that the split is between last and second last, rather than first/last as youd expect. | ||||
| * | * | ||||
| * real order is like this | * real order is like this | ||||
| * 0,1,2,3,4 --> 1,2,3,4,0 | * 0,1,2,3,4 --> 1,2,3,4,0 | ||||
| * | * | ||||
| * this is why we compare last with second last | * this is why we compare last with second last | ||||
| * */ | */ | ||||
| float vec_1[3] = {0, 1, 0}, vec_2[3] = {0, 1, 0}, angle, ang_fac, cross_tmp[3]; | float vec_1[3] = {0, 1, 0}, vec_2[3] = {0, 1, 0}, angle, ang_fac, cross_tmp[3]; | ||||
| BevPoint *bevp_first; | BevPoint *bevp_first; | ||||
| BevPoint *bevp_last; | BevPoint *bevp_last; | ||||
| bevp_first = bl->bevpoints; | bevp_first = bl->bevpoints; | ||||
| bevp_first += bl->nr - 1; | bevp_first += bl->nr - 1; | ||||
| bevp_last = bevp_first; | bevp_last = bevp_first; | ||||
| ▲ Show 20 Lines • Show All 3,260 Lines • Show Last 20 Lines | |||||