Skip to content

Commit 06d6d55

Browse files
committed
Refactor bunny mesh creation in mesh geometry tests for clarity and consistency
1 parent 4fc5521 commit 06d6d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/mesh_geometry_tests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
points = (Ref(rot) .* (bunny.position .* 150)) .+ Ref([15, 3, 0])
1010
faces = getfield(bunny, :faces)
1111
bunny_mesh1 = GeometryBasics.Mesh([Point(x) for x in points], faces)
12-
13-
bunny_mesh = translate(rotate(scale(bunny, 150), π / 2, 0.0, 0.0, 1.0), 15, 3, 0)
14-
@test all(map(x -> x[1] == x[2], zip(bunny_mesh.position, bunny_mesh1.position)))
12+
bunny_mesh_geometry = MeshGeometry(bunny)
13+
bunny_mesh = translate(rotate(scale(bunny_mesh_geometry, 150), π / 2, 0.0, 0.0, 1.0), 15, 3, 0)
14+
@test all(map(x -> x[1] == x[2], zip(bunny_mesh.geometryBasicsMesh.position, bunny_mesh1.position)))
1515
end

0 commit comments

Comments
 (0)