Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ddfeca41e9
|
@@ -870,13 +870,6 @@ mod test{
|
|||||||
fn test_cube_points(){
|
fn test_cube_points(){
|
||||||
let mesh=PhysicsMesh::unit_cube();
|
let mesh=PhysicsMesh::unit_cube();
|
||||||
let mesh_view=mesh.complete_mesh_view();
|
let mesh_view=mesh.complete_mesh_view();
|
||||||
for x in -2..=2{
|
assert!(mesh_contains_point(mesh_view,vec3::NEG_Z));
|
||||||
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