pub fn extract_edge(e: usize, pad: &Scratchpad) -> Scratchpad {
        let (space_ndim, geo_ndim) = pad.jacobian.dims();
        assert_ne!(geo_ndim, 1);
        let mut pad_edge = Scratchpad::new(space_ndim, pad.kind.edge_kind().unwrap()).unwrap();
        for i in 0..pad.kind.edge_nnode() {
            let m = pad.kind.edge_node_id(e, i);
            for j in 0..space_ndim {
                pad_edge.set_xx(i, j, pad.xxt[j][m]);
            }
        }
        pad_edge
    }
/// Extracts edge 'e' with coordinates set from the parent shape
///
/// # Panics
///
/// This function panics if:
///
/// 1. geo_ndim = 1 (shape does not have edges)
/// 2. space_ndim is not 2 or 3
/// 3. geo_ndim is greater than geo_ndim (impossible situation)
Extracts edge 'e' with coordinates set from the parent shape
Extracts edge ' e ' with coordinates set from the parent shape
pub fn extract_edge(e: usize, pad: &Scratchpad) -> Scratchpad {
        let (space_ndim, geo_ndim) = pad.jacobian.dims();
        assert_ne!(geo_ndim, 1);
        let mut pad_edge = Scratchpad::new(space_ndim, pad.kind.edge_kind().unwrap()).unwrap();
        for i in 0..pad.kind.edge_nnode() {
            let m = pad.kind.edge_node_id(e, i);
            for j in 0..space_ndim {
                pad_edge.set_xx(i, j, pad.xxt[j][m]);
            }
        }
        pad_edge
    }
pub fn extract_edge ( e : usize , pad : & Scratchpad ) -> Scratchpad { let ( space_ndim , geo_ndim ) = pad . jacobian . dims ( ) ; assert_ne ! ( geo_ndim 1 ) ; let mut pad_edge = Scratchpad :: new ( space_ndim , pad . kind . edge_kind ( ) . unwrap ( ) ) . unwrap ( ) ; for i in 0 .. pad . kind . edge_nnode ( ) { let m = pad . kind . edge_node_id ( e , i ) ; for j in 0 .. space_ndim { pad_edge . set_xx ( i , j , pad . xxt [ j ] [ m ] ) ; } } pad_edge }
Extracts edge 'e' with coordinates set from the parent shape
Extracts edge ' e ' with coordinates set from the parent shape
e
usize
pad
&Scratchpad
e
usize
pad
&Scratchpad
panics
This function panics if.

1. geo_ndim = 1 (shape does not have edges)
2. space_ndim is not 2 or 3
3. geo_ndim is greater than geo_ndim (impossible situation)
This function panics if . 1 . geo_ndim = 1 ( shape does not have edges ) 2 . space_ndim is not 2 or 3 3 . geo_ndim is greater than geo_ndim ( impossible situation )