19 #include "libmesh/face.h" 20 #include "libmesh/int_range.h" 21 #include "libmesh/point.h" 36 Point weighted_cc_sum;
43 const Point a = p1-p0;
44 const Point b = p2-p0;
47 const Real area = sqrt(norm2_axb)/2;
51 weighted_cc_sum += area*cc_minus_p0;
55 weighted_cc_sum /= total_area;
56 weighted_cc_sum += p0;
58 return weighted_cc_sum;
The libMesh namespace provides an interface to certain functionality in the library.
auto norm_sq() const -> decltype(std::norm(T()))
TypeVector< typename CompareTypes< T, T2 >::supertype > cross(const TypeVector< T2 > &v) const
virtual unsigned int n_vertices() const =0
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...
A Point defines a location in LIBMESH_DIM dimensional Real space.
const Point & point(const unsigned int i) const
virtual Point quasicircumcenter() const override