Changeset View
Changeset View
Standalone View
Standalone View
mesh_bsurfaces.py
| Context not available. | |||||
| shortest_dist = second_dist | shortest_dist = second_dist | ||||
| if shortest_dist > first_dist and first_dist != 0: | if shortest_dist > first_dist != 0: | ||||
| shortest_dist = first_dist | shortest_dist = first_dist | ||||
| if shortest_dist > second_dist and second_dist != 0: | if shortest_dist > second_dist != 0: | ||||
| shortest_dist = second_dist | shortest_dist = second_dist | ||||
| Context not available. | |||||
| if dist <= self.crosshatch_merge_distance * 1.5: | if dist <= self.crosshatch_merge_distance * 1.5: | ||||
| temp_co, percent1 = mathutils.geometry.intersect_point_line(intersec_coords[0], bp1_co, bp2_co) | temp_co, percent1 = mathutils.geometry.intersect_point_line(intersec_coords[0], bp1_co, bp2_co) | ||||
| if (percent1 >= -0.02 and percent1 <= 1.02): | if -0.02 <= percent1 <= 1.02: | ||||
| temp_co, percent2 = mathutils.geometry.intersect_point_line(intersec_coords[1], bp3_co, bp4_co) | temp_co, percent2 = mathutils.geometry.intersect_point_line(intersec_coords[1], bp3_co, bp4_co) | ||||
| if (percent2 >= -0.02 and percent2 <= 1.02): | if -0.02 <= percent2 <= 1.02: | ||||
| all_intersections.append((i, t, percent1, ob_splines.matrix_world * intersec_coords[0])) # Format: spline index, first point index from corresponding segment, percentage from first point of actual segment, coords of intersection point. | all_intersections.append((i, t, percent1, ob_splines.matrix_world * intersec_coords[0])) # Format: spline index, first point index from corresponding segment, percentage from first point of actual segment, coords of intersection point. | ||||
| all_intersections.append((i2, t2, percent2, ob_splines.matrix_world * intersec_coords[1])) | all_intersections.append((i2, t2, percent2, ob_splines.matrix_world * intersec_coords[1])) | ||||
| Context not available. | |||||