Include broken values in assertion failure message.
This commit is contained in:
committed by
Sébastien Crozet
parent
cb20808920
commit
775c45e9ff
@@ -51,8 +51,20 @@ impl SAPAxis {
|
|||||||
|
|
||||||
for proxy_id in new_proxies {
|
for proxy_id in new_proxies {
|
||||||
let proxy = &proxies[*proxy_id];
|
let proxy = &proxies[*proxy_id];
|
||||||
assert!(proxy.aabb.mins[dim] <= self.max_bound);
|
assert!(
|
||||||
assert!(proxy.aabb.maxs[dim] >= self.min_bound);
|
proxy.aabb.mins[dim] <= self.max_bound,
|
||||||
|
"proxy.aabb.mins {} (in {:?}) <= max_bound {}",
|
||||||
|
proxy.aabb.mins[dim],
|
||||||
|
proxy.aabb,
|
||||||
|
self.max_bound
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
proxy.aabb.maxs[dim] >= self.min_bound,
|
||||||
|
"proxy.aabb.maxs {} (in {:?}) >= min_bound {}",
|
||||||
|
proxy.aabb.maxs[dim],
|
||||||
|
proxy.aabb,
|
||||||
|
self.min_bound
|
||||||
|
);
|
||||||
let start_endpoint =
|
let start_endpoint =
|
||||||
SAPEndpoint::start_endpoint(proxy.aabb.mins[dim], *proxy_id as u32);
|
SAPEndpoint::start_endpoint(proxy.aabb.mins[dim], *proxy_id as u32);
|
||||||
let end_endpoint = SAPEndpoint::end_endpoint(proxy.aabb.maxs[dim], *proxy_id as u32);
|
let end_endpoint = SAPEndpoint::end_endpoint(proxy.aabb.maxs[dim], *proxy_id as u32);
|
||||||
|
|||||||
Reference in New Issue
Block a user