Refactor tests and remove unused imports
- Cleaned up test files by removing unnecessary imports and unused parameters. - Simplified test functions by eliminating redundant parameterization and consolidating logic. - Updated test cases to directly use defined values instead of parameterized inputs where applicable. - Enhanced readability and maintainability of the test code across various test files.
This commit is contained in:
@@ -238,10 +238,6 @@ def extract_selection_contours(selection_values, max_resolution=512, threshold=0
|
||||
image_size=source_size,
|
||||
)
|
||||
|
||||
|
||||
POINT_SPACING = 0.1
|
||||
|
||||
|
||||
def contour_area(points):
|
||||
import numpy as np
|
||||
|
||||
@@ -560,19 +556,6 @@ def crop_plane_bounds(source_object, crop_bounds, source_size):
|
||||
)
|
||||
|
||||
|
||||
def extract_cutout_contours(
|
||||
content_values,
|
||||
sampling_resolution,
|
||||
threshold=CUTOUT_ALPHA_THRESHOLD,
|
||||
):
|
||||
contour_resolution = max(512, min(round(sampling_resolution * 8), 1024))
|
||||
return extract_selection_contours(
|
||||
content_values,
|
||||
max_resolution=contour_resolution,
|
||||
threshold=threshold,
|
||||
)
|
||||
|
||||
|
||||
def effective_cutout_edge_length(
|
||||
context,
|
||||
source_object,
|
||||
|
||||
@@ -2450,7 +2450,7 @@ def refine_quality(mesh, opts, n_input_verts):
|
||||
tmr = tri_metric(mesh, bad_idx, min_ang_val, global_max_a, use_region_area, cos_min_ang)
|
||||
if tmr[0] <= 0:
|
||||
continue
|
||||
ang_viol, area_viol, area, effective_max_area = tmr[1], tmr[2], tmr[3], tmr[4]
|
||||
ang_viol, area_viol, area, _ = tmr[1], tmr[2], tmr[3], tmr[4]
|
||||
tmr_la2, tmr_lb2, tmr_lc2 = tmr[5], tmr[6], tmr[7]
|
||||
|
||||
a = mesh.vertices[bt.v[0]]
|
||||
|
||||
Reference in New Issue
Block a user