pub fn export_tree(&self) -> Arc<Group> {
        let groups = self
            .groups_data
            .keys()
            .map(|group_name| self.group(group_name) as Arc<dyn Shape>)
            .collect::<Vec<_>>();

        Group::new(Matrix::identity(4), groups)
    }
// Convenience method for exporting the groups as tree, with the group as leaves of a new root group.
// In the book, this is `obj_to_group()`.
//
Convenience method for exporting the groups as tree, with the group as leaves of a new root group.
In the book, this is `obj_to_group()`.
Convenience method for exporting the groups as tree with the group as leaves of a new root group . In the book this is ` obj_to_group () ` .
pub fn export_tree(&self) -> Arc<Group> {
        let groups = self
            .groups_data
            .keys()
            .map(|group_name| self.group(group_name) as Arc<dyn Shape>)
            .collect::<Vec<_>>();
        Group::new(Matrix::identity(4), groups)
    }
pub fn export_tree ( & self ) -> Arc < Group > { let groups = self . groups_data . keys ( ) . map ( | group_name | self . group ( group_name ) as Arc < dyn Shape > ) . collect :: < Vec < _ > > ( ) ; Group :: new ( Matrix :: identity ( 4 ) , groups ) }
Convenience method for exporting the groups as tree, with the group as leaves of a new root group.
Convenience method for exporting the groups as tree with the group as leaves of a new root group .
&self