From: Benjamin Bihler Date: Mon, 14 May 2018 13:02:22 +0000 (+0200) Subject: 0029766: BRepExtrema_DistShapeShape Should Give Access to Its Solutions X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR29766;p=occt-copy.git 0029766: BRepExtrema_DistShapeShape Should Give Access to Its Solutions Solution getters have been added to BRepExtrema_DistShapeShape. --- diff --git a/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx b/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx index c3040472ec..b298f6f1c0 100644 --- a/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx +++ b/src/BRepExtrema/BRepExtrema_DistShapeShape.hxx @@ -67,6 +67,16 @@ class BRepExtrema_DistShapeShape { return mySolutionsShape1.Length(); } + //! Returns the th solution on the first Shape
+ const BRepExtrema_SolutionElem& Solution1(const Standard_Integer N) const + { + return mySolutionsShape1.Value(N); + } + //! Returns the th solution on the second Shape
+ const BRepExtrema_SolutionElem& Solution2(const Standard_Integer N) const + { + return mySolutionsShape2.Value(N); + } //! Returns the value of the minimum distance.
Standard_EXPORT Standard_Real Value() const; //! True if one of the shapes is a solid and the other shape