Commit e7cd4edd authored by Janis Born's avatar Janis Born

add calc_face_area for TriMeshT

parent 502241d6
Pipeline #9202 passed with stage
in 53 minutes and 37 seconds
......@@ -411,6 +411,16 @@ public:
*/
inline void split_copy(FaceHandle _fh, VertexHandle _vh)
{ PolyMesh::split_copy(_fh, _vh); }
/** \brief Calculates the area of a face
*
* @param _fh Handle of the face to calculate the area of
*/
Scalar calc_face_area(FaceHandle _fh) const
{
const HalfedgeHandle heh = this->halfedge_handle(_fh);
return this->calc_sector_area(heh);
}
/** \name Normal vector computation
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment