]> OCCT Git - occt-copy.git/commitdiff
0029766: BRepExtrema_DistShapeShape Should Give Access to Its Solutions CR29766
authorBenjamin Bihler <benjamin.bihler@compositence.de>
Mon, 14 May 2018 13:02:22 +0000 (15:02 +0200)
committerBenjamin Bihler <benjamin.bihler@compositence.de>
Mon, 14 May 2018 13:02:22 +0000 (15:02 +0200)
Solution getters have been added to BRepExtrema_DistShapeShape.

src/BRepExtrema/BRepExtrema_DistShapeShape.hxx

index c3040472ecaec311ac83d4e0408233ec3a40c490..b298f6f1c0a29df2290a3ff45779c02172bad379 100644 (file)
@@ -67,6 +67,16 @@ class BRepExtrema_DistShapeShape
   { 
     return mySolutionsShape1.Length();
   }
+  //! Returns the <N>th solution on the first Shape <br>
+  const BRepExtrema_SolutionElem& Solution1(const Standard_Integer N) const
+  {
+    return mySolutionsShape1.Value(N);
+  }
+  //! Returns the <N>th solution on the second Shape <br>
+  const BRepExtrema_SolutionElem& Solution2(const Standard_Integer N) const
+  {
+    return mySolutionsShape2.Value(N);
+  }
   //! Returns the value of the minimum distance. <br>
   Standard_EXPORT Standard_Real Value() const;
   //! True if one of the shapes is a solid and the other shape <br>