36 diff -=
node(0)->point();
37 return arma::norm( diff , 2 );
42 return 0.5*arma::norm( arma::cross(diff0, diff1), 2);
91 elem_normal /= norm( elem_normal, 2);
94 arma::vec3 side_normal = arma::cross(
node(1)->point() -
node(0)->point() , elem_normal );
95 side_normal /= norm( side_normal, 2);
97 if ( dot( side_normal, ele.
centre() -
node(0)->point() ) > 0.0)
108 node(2)->point() -
node(0)->point() );
109 side_normal /= norm( side_normal, 2);
125 for(
unsigned int i=0; i <
n_nodes() ; i++)
126 barycenter +=
node( i )->point();
128 barycenter /= (double)
n_nodes();