fix for OCCT 7.4 and older

This commit is contained in:
Joachim Schoeberl 2021-08-31 01:00:33 +02:00
parent 56fb4a72fc
commit f856e90d15

View File

@ -466,7 +466,7 @@ namespace netgen
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=5 #if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=5
gp_Pnt p = T -> Node(aEdgePoly->Node(j)).Transformed(aEdgeLoc); gp_Pnt p = T -> Node(aEdgePoly->Node(j)).Transformed(aEdgeLoc);
#else #else
gp_Pnt p = T -> Nodes())(aEdgePoly->Nodes()(j).Transformed(aEdgeLoc); gp_Pnt p = T -> Nodes()(aEdgePoly->Nodes()(j)).Transformed(aEdgeLoc);
#endif #endif
glVertex3f (p.X(), p.Y(), p.Z()); glVertex3f (p.X(), p.Y(), p.Z());
} }
@ -608,7 +608,7 @@ namespace netgen
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=5 #if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=5
uv = triangulation -> UVNode(triangle(k)); uv = triangulation -> UVNode(triangle(k));
#else #else
uv = triangulation -> UVNodes())(triangle(k); uv = triangulation -> UVNodes()(triangle(k);
#endif #endif
prop.SetParameters (uv.X(), uv.Y()); prop.SetParameters (uv.X(), uv.Y());