]> OCCT Git - occt.git/commitdiff
#32471 Mesh - Deflection of the triangulation is not recomputed for planar face
authoroan <oan@opencascade.com>
Mon, 16 Jan 2023 11:59:40 +0000 (14:59 +0300)
committeroan <oan@opencascade.com>
Mon, 16 Jan 2023 11:59:40 +0000 (14:59 +0300)
Correction fix for CR32741 to provide binary compatibility with Products 750

src/BRepMesh/BRepMesh_ModelPostProcessor.cxx
src/Poly/Poly_Triangulation.hxx

index 8715c2b287164da379b071c6abe9f41c3d992d6c..150c24e3f43d851961881337aafd980350a8f7cd 100644 (file)
@@ -191,7 +191,7 @@ namespace
       
       if (!aTriangulation.IsNull())
       {
-        aTriangulation->Parameters (myParams);
+        aTriangulation->Deflection(myParams->Deflection());
       }
     }
 
index 91f054a99987afac4e1d1a4b92bd69eb394d1706..dc7ec6bea3218e026cd3ffe510ee02c62e4e11fa 100644 (file)
@@ -109,10 +109,10 @@ public:
   Standard_EXPORT void RemoveUVNodes();
 
   //! Returns initial set of parameters used to generate this triangulation.
-  const Handle(Poly_TriangulationParameters)& Parameters() const { return myParams; }
+  //const Handle(Poly_TriangulationParameters)& Parameters() const { return myParams; }
 
   //! Updates initial set of parameters used to generate this triangulation.
-  void Parameters (const Handle(Poly_TriangulationParameters)& theParams) { myParams = theParams; }
+  //void Parameters (const Handle(Poly_TriangulationParameters)& theParams) { myParams = theParams; }
 
   //! Returns the number of nodes for this triangulation.
   Standard_Integer NbNodes() const { return myNodes.Length(); }
@@ -212,7 +212,7 @@ protected:
   Poly_Array1OfTriangle              myTriangles;
   Handle(TShort_HArray1OfShortReal)  myNormals;
 
-  Handle(Poly_TriangulationParameters) myParams;
+  //Handle(Poly_TriangulationParameters) myParams;
 };
 
 #endif // _Poly_Triangulation_HeaderFile