add loop
This commit is contained in:
@@ -870,14 +870,13 @@ mod test{
|
||||
fn test_cube_points(){
|
||||
let mesh=PhysicsMesh::unit_cube();
|
||||
let mesh_view=mesh.complete_mesh_view();
|
||||
assert!(mesh_contains_point(mesh_view,vec3::zero()));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::X));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::NEG_X));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::Y));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::NEG_Y));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::Z));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::NEG_Z));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::ONE));
|
||||
assert!(mesh_contains_point(mesh_view,vec3::NEG_ONE));
|
||||
for x in -2..=2{
|
||||
for y in -2..=2{
|
||||
for z in -2..=2{
|
||||
let point=vec3::int(x,y,z)>>1;
|
||||
assert!(mesh_contains_point(mesh_view,point),"Mesh did not contain point {point}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user