rust/landgen/src/outline.rs
changeset 14114 dbaa125a0fe9
parent 14102 5d42204ac35e
child 14116 b2feb190e4bc
equal deleted inserted replaced
14113:32a34bf70f65 14114:dbaa125a0fe9
   168     pub fn distort<I: Iterator<Item = u32>>(&mut self, random_numbers: &mut I) {
   168     pub fn distort<I: Iterator<Item = u32>>(&mut self, random_numbers: &mut I) {
   169         loop {
   169         loop {
   170             let old_len = self.total_len();
   170             let old_len = self.total_len();
   171             self.divide_edges(random_numbers);
   171             self.divide_edges(random_numbers);
   172 
   172 
   173             if self.total_len() != old_len {
   173             if self.total_len() == old_len {
   174                 break;
   174                 break;
   175             }
   175             }
   176         }
   176         }
   177 
   177 
   178         self.bezierize();
   178         self.bezierize();