Curves: Add python function to compare curve geometries
This adds a `unit_test_compare` function to `Curves`. Compares the curves. Curves are the same if: * The number of points matches. * The number of curves matches. * The attribute names are the same and have the same type. * The point attribute values are within the `threshold`. * The curve topology matches (e.g. the curve sizes are the same). * The curve attribute values are within the `threshold`. * The indices of the points and curves are the same (can be ignored if this should be treated as the same). The implementation reuses the same functions as the existing comparison function for meshes. Pull Request: https://projects.blender.org/blender/blender/pulls/131164
This commit is contained in:
@@ -407,7 +407,7 @@ class MeshTest(ABC):
|
||||
|
||||
if result_mesh == "Same":
|
||||
result_codes['Mesh Comparison'] = (True, result_mesh)
|
||||
elif allow_index_change and result_mesh == "The meshes are the same up to a change of indices":
|
||||
elif allow_index_change and result_mesh == "The geometries are the same up to a change of indices":
|
||||
result_codes['Mesh Comparison'] = (True, result_mesh)
|
||||
else:
|
||||
result_codes['Mesh Comparison'] = (False, result_mesh)
|
||||
|
||||
Reference in New Issue
Block a user