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
dc612d1d
Commit
dc612d1d
authored
Jan 17, 2020
by
Dennis Gläser
Browse files
[geom][cylsurface] reintroduce area computation
parent
d464ff8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
frackit/geometry/cylindersurface.hh
View file @
dc612d1d
...
...
@@ -106,6 +106,8 @@ public:
ctype
height
()
const
{
return
height_
;
}
//! Return the radius of the cylinder
ctype
radius
()
const
{
return
bottom_
.
radius
();
}
//! Return the area of this surface
ctype
area
()
{
return
2.0
*
M_PI
*
radius
()
*
height
();
}
//! Return the circle describing the top boundary of this surface
const
Circle
&
upperBoundingCircle
()
const
{
return
top_
;
}
...
...
frackit/magnitude/area.hh
View file @
dc612d1d
...
...
@@ -42,12 +42,6 @@ template<class Geometry>
typename
Geometry
::
ctype
computeArea
(
const
Geometry
&
geometry
)
{
return
geometry
.
area
();
}
//! \todo TODO doc me.
template
<
class
ctype
>
ctype
computeArea
(
const
CylinderSurface
<
ctype
>&
cylSurface
)
{
return
2.0
*
M_PI
*
cylSurface
.
radius
()
*
cylSurface
.
height
();
}
//! \todo TODO doc me.
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