mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix for OCCT 7.4 and older
This commit is contained in:
parent
56fb4a72fc
commit
f856e90d15
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user