49 return arma::norm( diff , 2 );
54 return 0.5*arma::norm( arma::cross(diff0, diff1), 2);
87 normal /=arma::norm(normal,2);
103 elem_normal /= norm( elem_normal, 2);
107 side_normal /= norm( side_normal, 2);
123 side_normal /= norm( side_normal, 2);
139 for(
unsigned int i=0; i <
n_nodes() ; i++)
142 barycenter /= (double)
n_nodes();
arma::vec3 normal_line() const
arma::vec3 centre() const
arma::vec3 normal_point() const
arma::vec3 normal_triangle() const
arma::vec3 centre() const
arma::vec3 normal() const
const Node * node(unsigned int i) const
unsigned int n_nodes() const