/// Prints all element types of a polytope into the console.
Prints all element types of a polytope into the console.
Prints all element types of a polytope into the console .
pub fn print_element_types(&self) {
        // An iterator over the element types of each rank.
        let mut type_iter = self.element_types().into_iter().enumerate();
        // Prints points.
        if let Some((r, types)) = type_iter.next() {
            println!("{}", EL_NAMES[r]);
            for t in types {
                println!("{}", t.count());
            }
            println!();
        } else {
            return;
        }
        // Prints edges.
        if let Some((r, types)) = type_iter.next() {
            println!("{}", EL_NAMES[r]);
            for t in types {
                println!("{} × length {}", t.count(), t.len());
            }
            println!();
        } else {
            return;
        }
        // Prints everything else.
        for (d, types) in type_iter {
            println!("{}", EL_NAMES[d]);
            for t in types {
                println!(
                    "{} × {}-{}",
                    t.count(),
                    t.data.facet_count(),
                    EL_SUFFIXES[d]
                );
            }
            println!();
        }
    }
pub fn print_element_types ( & self ) { // An iterator over the element types of each rank. let mut type_iter = self . element_types ( ) . into_iter ( ) . enumerate ( ) ; // Prints points. if let Some ( ( r , types ) ) = type_iter . next ( ) { println ! ( " " EL_NAMES [ r ] ) ; for t in types { println ! ( " " t count ( ) ) ; } println ! ( ) ; } else { return ; } // Prints edges. if let Some ( ( r , types ) ) = type_iter . next ( ) { println ! ( " " EL_NAMES [ r ] ) ; for t in types { println ! ( " , . ount( ) , . en( ) ) ; } println ! ( ) ; } else { return ; } // Prints everything else. for ( d , types ) in type_iter { println ! ( " " EL_NAMES [ d ] ) ; for t in types { println ! ( " , t count ( ) t data facet_count ( ) EL_SUFFIXES [ d ] ) ; } println ! ( ) ; } }
Prints all element types of a polytope into the console.
Prints all element types of a polytope into the console .
&self