pub fn with(mesh: Mesh, extract: Extract) -> Result<Self, StrError> {
        let (all_2d_edges, all_faces, features) = Features::new(&mesh, extract);
        let find = Find::new(&mesh, &features)?;
        Ok(Region {
            mesh,
            all_2d_edges,
            all_faces,
            features,
            find,
        })
    }
/// Allocates and prepares a new region with a given mesh
///
/// # Input
///
/// * `mesh` -- the mesh (will move to Region)
/// * `extract` -- which features to extract?
///
/// # Panics
///
/// 1. This function may panic if the mesh data is inconsistent
/// 2. You may want to call [crate::mesh::check_all()] to capture (some) errors
Allocates and prepares a new region with a given mesh
Allocates and prepares a new region with a given mesh
pub fn with(mesh: Mesh, extract: Extract) -> Result<Self, StrError> {
        let (all_2d_edges, all_faces, features) = Features::new(&mesh, extract);
        let find = Find::new(&mesh, &features)?;
        Ok(Region {
            mesh,
            all_2d_edges,
            all_faces,
            features,
            find,
        })
    }
pub fn with ( mesh : Mesh , extract : Extract ) -> Result < Self , StrError > { let ( all_2d_edges , all_faces , features ) = Features :: new ( & mesh , extract ) ; let find = Find :: new ( & mesh , & features ) ? ; Ok ( Region { mesh , all_2d_edges , all_faces , features , find , } ) }
Allocates and prepares a new region with a given mesh
Allocates and prepares a new region with a given mesh
mesh
Mesh
extract
Extract
mesh
Mesh
extract
Extract
input
None
panics
1. This function may panic if the mesh data is inconsistent
2. You may want to call [crate::mesh::check_all()] to capture (some) errors
1 . This function may panic if the mesh data is inconsistent 2 . You may want to call [ crate :: mesh :: check_all () ] to capture ( some ) errors