36 return arma::norm( diff , 2 );
41 return 0.5*arma::norm( arma::cross(diff0, diff1), 2);
74 normal /=arma::norm(normal,2);
90 elem_normal /= norm( elem_normal, 2);
94 side_normal /= norm( side_normal, 2);
110 side_normal /= norm( side_normal, 2);
126 for(
unsigned int i=0; i <
n_nodes() ; i++)
129 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