TEMP: fail after 10 iterations
This commit is contained in:
parent
53adc651e5
commit
3d426c0859
@ -107,11 +107,12 @@ pub enum CrawlResult<F,E:DirectedEdge,V>{
|
||||
}
|
||||
pub fn crawl_fev<F:Copy,E:Copy+DirectedEdge,V:Copy>(mut fev:FEV<F,E,V>,mesh:&impl MeshQuery<F,E,V>,relative_body:&Body,start_time:Time,time_limit:Time)->CrawlResult<F,E,V>{
|
||||
let mut time=start_time;
|
||||
loop{
|
||||
for _ in 0..10{
|
||||
match next_transition(&fev,time,mesh,relative_body,time_limit){
|
||||
Transition::Miss=>return CrawlResult::Miss(fev),
|
||||
Transition::Next(next_fev,next_time)=>(fev,time)=(next_fev,next_time),
|
||||
Transition::Hit(face,time)=>return CrawlResult::Hit(face,time),
|
||||
}
|
||||
}
|
||||
panic!("Too many iterations!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user