Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tools
frackit
Commits
731ed886
Commit
731ed886
authored
Jan 17, 2020
by
Dennis Gläser
Browse files
[magnitude][area] improve docu
parent
dc612d1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/magnitude/area.hh
View file @
731ed886
...
...
@@ -19,7 +19,7 @@
/*!
* \file
* \brief Contains functionality for computing the
* area of two-dimensional geometries.
* area
s
of two-dimensional geometries.
*/
#ifndef FRACKIT_MAGNITUDE_AREA_HH
#define FRACKIT_MAGNITUDE_AREA_HH
...
...
@@ -31,17 +31,26 @@
#include
<BRepGProp.hxx>
#include
<GProp_GProps.hxx>
#include
<frackit/geometry/disk.hh>
#include
<frackit/geometry/cylindersurface.hh>
#include
<frackit/precision/precision.hh>
namespace
Frackit
{
//! \todo TODO doc me.
/*!
* \brief Returns the area of an internal geometry
* that has an area() function available.
*/
template
<
class
Geometry
>
typename
Geometry
::
ctype
computeArea
(
const
Geometry
&
geometry
)
{
return
geometry
.
area
();
}
/*!
* \brief Returns the area of a TopoDS_Face.
* \param face The face
* \param eps Tolerance value to be used
* \param loc A location; defaults to the origin, however,
* higher precision is achieved if a point close
* to the actual face is chosen.
*/
template
<
class
ctype
=
double
>
ctype
computeArea
(
const
TopoDS_Face
&
face
,
ctype
eps
=
Precision
<
ctype
>::
confusion
(),
...
...
Write
Preview
Supports
Markdown
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