fn write_els(&mut self, rank: usize) {
        // # n-elements
        if self.comments() {
            self.push_str("\n# ");
            self.push_str(element_name(rank));
            self.push('\n');
        }

        // Adds the elements' indices.
        for el in &self.poly[rank] {
            let subs = &el.subs;
            self.push_to_str(subs.len());

            for &sub in subs {
                self.push(' ');
                self.push_to_str(sub);
            }

            self.push('\n');
        }
    }
/// Writes the n-elements of a polytope into an OFF file.
Writes the n-elements of a polytope into an OFF file.
Writes the n - elements of a polytope into an OFF file .
fn write_els(&mut self, rank: usize) {
        // # n-elements
        if self.comments() {
            self.push_str("\n# ");
            self.push_str(element_name(rank));
            self.push('\n');
        }
        // Adds the elements' indices.
        for el in &self.poly[rank] {
            let subs = &el.subs;
            self.push_to_str(subs.len());
            for &sub in subs {
                self.push(' ');
                self.push_to_str(sub);
            }
            self.push('\n');
        }
    }
fn write_els ( & mut self , rank : usize ) { // # n-elements if self . comments ( ) { self . push_str ( " \n " ) ; self . push_str ( element_name ( rank ) ) ; self . push ( '\n' ) ; } // Adds the elements' indices. for el in & self . poly [ rank ] { let subs = & el . subs ; self . push_to_str ( subs . len ( ) ) ; for & sub in subs { self . push ( ' ' ) ; self . push_to_str ( sub ) ; } self . push ( '\n' ) ; } }
Writes the n-elements of a polytope into an OFF file.
Writes the n - elements of a polytope into an OFF file .
&mut self
rank
usize
&mut self
rank
usize