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
8ea98438
Commit
8ea98438
authored
Jan 25, 2020
by
Dennis Gläser
Browse files
[distance][boundary] add overload for quadrilaterals
parent
2e3b7f14
Changes
1
Hide whitespace changes
Inline
Side-by-side
frackit/distance/distancetoboundary.hh
View file @
8ea98438
...
...
@@ -190,6 +190,29 @@ ctype computeDistanceToBoundary(const TopoDS_Shape& shape,
extAlgo
);
}
/*!
* \brief Compute the distance of a shape
* to the bounding wire of a quadrilateral.
* \param shape The shape
* \param quad The quadrilateral
* \param deflection The epsilon used in the BrepExtrema command
* \param extFlag The flag passed to the BrepExtrema command (MIN/MAX/MINMAX)
* \param extAlgo The algorithm passed to the BrepExtrema command (TREE/GRAD)
*/
template
<
class
ctype
>
ctype
computeDistanceToBoundary
(
const
TopoDS_Shape
&
shape
,
const
Quadrilateral
<
ctype
,
3
>&
quad
,
ctype
deflection
=
Precision
<
ctype
>::
confusion
(),
Extrema_ExtFlag
extFlag
=
Extrema_ExtFlag_MINMAX
,
Extrema_ExtAlgo
extAlgo
=
Extrema_ExtAlgo_Grad
)
{
return
computeDistance
(
shape
,
OCCUtilities
::
getShape
(
quad
),
deflection
,
extFlag
,
extAlgo
);
}
/*!
* \brief Compute the distance of a geometry
* to the boundary of a TopoDS_Face.
...
...
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