From 75f3b333f1a8c26086a24714ab9e3c208a589fcd Mon Sep 17 00:00:00 2001 From: Benjamin Bihler Date: Mon, 14 May 2018 15:02:22 +0200 Subject: [PATCH] 0029766: BRepExtrema_DistShapeShape Should Give Access to Its Solutions Solution getters have been added to BRepExtrema_DistShapeShape. --- src/BRepExtrema/BRepExtrema_DistShapeShape.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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
-- 2.39.5