Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
0ea44a0a
Commit
0ea44a0a
authored
Mar 15, 2019
by
Jan Möbius
Browse files
Merge branch 'calc_face_area' into 'master'
add calc_face_area for TriMeshT See merge request
!214
parents
502241d6
e7cd4edd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/TriMeshT.hh
View file @
0ea44a0a
...
@@ -412,6 +412,16 @@ public:
...
@@ -412,6 +412,16 @@ public:
inline
void
split_copy
(
FaceHandle
_fh
,
VertexHandle
_vh
)
inline
void
split_copy
(
FaceHandle
_fh
,
VertexHandle
_vh
)
{
PolyMesh
::
split_copy
(
_fh
,
_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
/** \name Normal vector computation
*/
*/
//@{
//@{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment