From: oan Date: Mon, 16 Jan 2023 11:59:40 +0000 (+0300) Subject: #32471 Mesh - Deflection of the triangulation is not recomputed for planar face X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a589a4fe3cf46ac0a7f82ca747cd2bb58d7d371b;p=occt.git #32471 Mesh - Deflection of the triangulation is not recomputed for planar face Correction fix for CR32741 to provide binary compatibility with Products 750 --- diff --git a/src/BRepMesh/BRepMesh_ModelPostProcessor.cxx b/src/BRepMesh/BRepMesh_ModelPostProcessor.cxx index 8715c2b287..150c24e3f4 100644 --- a/src/BRepMesh/BRepMesh_ModelPostProcessor.cxx +++ b/src/BRepMesh/BRepMesh_ModelPostProcessor.cxx @@ -191,7 +191,7 @@ namespace if (!aTriangulation.IsNull()) { - aTriangulation->Parameters (myParams); + aTriangulation->Deflection(myParams->Deflection()); } } diff --git a/src/Poly/Poly_Triangulation.hxx b/src/Poly/Poly_Triangulation.hxx index 91f054a999..dc7ec6bea3 100644 --- a/src/Poly/Poly_Triangulation.hxx +++ b/src/Poly/Poly_Triangulation.hxx @@ -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