{
archive_info : {archive_name : "netgen-5.3.1.tar.gz"}
compil_script : 'netgen_5_3_1' + $VARS.scriptExtension
- patches : ["netgen-5.3.1-for-SALOME-OCCT-7.2.0.patch"]
+ patches : ["netgen-5.3.1-for-SALOME-OCCT-7.2.0.patch","netgen5.3_withOCCT770_linux.patch"]
}
version_5_3_1_with_CAS_7_2_win :
{
compil_script : 'netgen.bat'
- patches : ['netgen53ForSalomeOCCT730.patch','netgen53ForWindows.patch','netgen53ForSalomeVisualStudio2017.patch','netgen5.3_withOCCT770.patch']
+ patches : ['netgen53ForSalomeOCCT730.patch','netgen53ForWindows.patch','netgen53ForSalomeVisualStudio2017.patch','netgen5.3_withOCCT770_win.patch']
properties :
{
incremental : "yes"
{
compil_script : "netgen_5_3_1.sh"
archive_info: {archive_name : "netgen-5.3.1.tar.gz"}
- patches : [ "netgen53ForSalome.patch",'netgen5.3_withOCCT770.patch']
+ patches : [ "netgen53ForSalome.patch"]
}
version_4_9_13 :
+++ /dev/null
-diff --git "a/libsrc/occ/occgenmesh.cpp" "b/libsrc/occ/occgenmesh.cpp"
-index 1e0127f..a385c87 100644
---- "a/libsrc/occ/occgenmesh.cpp"
-+++ "b/libsrc/occ/occgenmesh.cpp"
-@@ -4,6 +4,7 @@
- #include <occgeom.hpp>
- #include <meshing.hpp>
-
-+#include <Standard_Version.hxx>
-
- namespace netgen
- {
-@@ -1240,13 +1241,18 @@ namespace netgen
- gp_Pnt p[3];
- gp_Pnt2d par[3];
-
-- for (int k = 1; k <=3; k++)
-+ for (int k = 1; k <= 3; k++)
- {
-- int n = triangulation->Triangles()(j)(k);
-- p[k-1] = triangulation->Nodes()(n).Transformed(loc);
-- par[k-1] = triangulation->UVNodes()(n);
-+#if OCC_VERSION_MAJOR >= 7 && OCC_VERSION_MINOR > 5
-+ int n = triangulation->Triangle(j)(k);
-+ p[k - 1] = triangulation->Node(n).Transformed(loc);
-+ par[k - 1] = triangulation->UVNode(n);
-+#else
-+ int n = triangulation->Triangles()(j)(k);
-+ p[k - 1] = triangulation->Nodes()(n).Transformed(loc);
-+ par[k - 1] = triangulation->UVNodes()(n);
-+#endif
- }
--
- //double maxside = 0;
- //maxside = max (maxside, p[0].Distance(p[1]));
- //maxside = max (maxside, p[0].Distance(p[2]));
--- /dev/null
+diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp
+index 5026536..8074ca6 100644
+--- a/libsrc/occ/occgenmesh.cpp
++++ b/libsrc/occ/occgenmesh.cpp
+@@ -1242,9 +1242,9 @@ namespace netgen
+
+ for (int k = 1; k <=3; k++)
+ {
+- int n = triangulation->Triangles()(j)(k);
+- p[k-1] = triangulation->Nodes()(n).Transformed(loc);
+- par[k-1] = triangulation->UVNodes()(n);
++ int n = triangulation->Triangle(j)(k);
++ p[k - 1] = triangulation->Node(n).Transformed(loc);
++ par[k - 1] = triangulation->UVNode(n);
+ }
+
+ //double maxside = 0;
+diff --git a/libsrc/occ/vsocc.cpp b/libsrc/occ/vsocc.cpp
+index 4d80600..74a85ae 100644
+--- a/libsrc/occ/vsocc.cpp
++++ b/libsrc/occ/vsocc.cpp
+@@ -463,7 +463,7 @@ namespace netgen
+ glBegin (GL_LINE_STRIP);
+ for (int j = 1; j <= nbnodes; j++)
+ {
+- gp_Pnt p = (T -> Nodes())(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
++ gp_Pnt p = T -> Node(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
+ glVertex3f (p.X(), p.Y(), p.Z());
+ }
+ glEnd ();
+@@ -510,7 +510,7 @@ namespace netgen
+ glBegin (GL_LINE_STRIP);
+ for (int j = 1; j <= nbnodes; j++)
+ {
+- gp_Pnt p = (T -> Nodes())(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
++ gp_Pnt p = T -> Node(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
+ glVertex3f (p.X(), p.Y(), p.Z());
+ }
+ glEnd ();
+@@ -586,14 +586,14 @@ namespace netgen
+ int ntriangles = triangulation -> NbTriangles();
+ for (int j = 1; j <= ntriangles; j++)
+ {
+- Poly_Triangle triangle = (triangulation -> Triangles())(j);
++ Poly_Triangle triangle = triangulation -> Triangle(j);
+ gp_Pnt p[3];
+ for (int k = 1; k <= 3; k++)
+- p[k-1] = (triangulation -> Nodes())(triangle(k)).Transformed(loc);
++ p[k-1] = triangulation -> Node(triangle(k)).Transformed(loc);
+
+ for (int k = 1; k <= 3; k++)
+ {
+- uv = (triangulation -> UVNodes())(triangle(k));
++ uv = triangulation -> UVNode(triangle(k));
+ prop.SetParameters (uv.X(), uv.Y());
+
+ // surf->D0 (uv.X(), uv.Y(), pnt);
--- /dev/null
+ libsrc/occ/occgenmesh.cpp | 6 +++---
+ libsrc/occ/vsocc.cpp | 10 +++++-----
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/libsrc/occ/occgenmesh.cpp b/libsrc/occ/occgenmesh.cpp
+index 1e0127f..d9b4e6f 100644
+--- a/libsrc/occ/occgenmesh.cpp
++++ b/libsrc/occ/occgenmesh.cpp
+@@ -1242,9 +1242,9 @@ namespace netgen
+
+ for (int k = 1; k <=3; k++)
+ {
+- int n = triangulation->Triangles()(j)(k);
+- p[k-1] = triangulation->Nodes()(n).Transformed(loc);
+- par[k-1] = triangulation->UVNodes()(n);
++ int n = triangulation->Triangle(j)(k);
++ p[k - 1] = triangulation->Node(n).Transformed(loc);
++ par[k - 1] = triangulation->UVNode(n);
+ }
+
+ //double maxside = 0;
+diff --git a/libsrc/occ/vsocc.cpp b/libsrc/occ/vsocc.cpp
+index 4d80600..0070b56 100644
+--- a/libsrc/occ/vsocc.cpp
++++ b/libsrc/occ/vsocc.cpp
+@@ -463,7 +463,7 @@ namespace netgen
+ glBegin (GL_LINE_STRIP);
+ for (int j = 1; j <= nbnodes; j++)
+ {
+- gp_Pnt p = (T -> Nodes())(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
++ gp_Pnt p = Node(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
+ glVertex3f (p.X(), p.Y(), p.Z());
+ }
+ glEnd ();
+@@ -510,7 +510,7 @@ namespace netgen
+ glBegin (GL_LINE_STRIP);
+ for (int j = 1; j <= nbnodes; j++)
+ {
+- gp_Pnt p = (T -> Nodes())(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
++ gp_Pnt p = Node(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
+ glVertex3f (p.X(), p.Y(), p.Z());
+ }
+ glEnd ();
+@@ -586,14 +586,14 @@ namespace netgen
+ int ntriangles = triangulation -> NbTriangles();
+ for (int j = 1; j <= ntriangles; j++)
+ {
+- Poly_Triangle triangle = (triangulation -> Triangles())(j);
++ Poly_Triangle triangle = triangulation->Triangles(j);
+ gp_Pnt p[3];
+ for (int k = 1; k <= 3; k++)
+- p[k-1] = (triangulation -> Nodes())(triangle(k)).Transformed(loc);
++ p[k-1] = triangulation -> Nodes(triangle(k)).Transformed(loc);
+
+ for (int k = 1; k <= 3; k++)
+ {
+- uv = (triangulation -> UVNodes())(triangle(k));
++ uv = triangulation -> UVNodes(triangle(k));
+ prop.SetParameters (uv.X(), uv.Y());
+
+ // surf->D0 (uv.X(), uv.Y(), pnt);