From 5f488b117fcb54695986ed43523b8b3967463fb2 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 23 Oct 2020 12:58:26 +0300 Subject: [PATCH] IPAL054703: TC-9.6.0: GHS3DPLUGIN does not compile if option SALOME_USE_MG_LIBS is set to ON --- src/HYBRIDPlugin/MG_HYBRID_API.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/HYBRIDPlugin/MG_HYBRID_API.cxx b/src/HYBRIDPlugin/MG_HYBRID_API.cxx index 248283f..6ad3f0d 100644 --- a/src/HYBRIDPlugin/MG_HYBRID_API.cxx +++ b/src/HYBRIDPlugin/MG_HYBRID_API.cxx @@ -362,6 +362,27 @@ struct MG_HYBRID_API::LibData ++_count; } + void ReadPyramidNodes( int* node1, int* node2, int* node3, int* node4, int* node5, int* domain ) + { + integer vtx[6]; + status_t ret = mesh_get_pyramid_vertices( _hybrid_mesh, _count, vtx); + if (ret != STATUS_OK) MG_Error( "unable to get resulting pyramid" ); + + *node1 = vtx[0]; + *node2 = vtx[1]; + *node3 = vtx[2]; + *node4 = vtx[3]; + *node5 = vtx[4]; + + integer tag; + ret = mesh_get_pyramid_tag( _hybrid_mesh, _count, &tag ); + if (ret != STATUS_OK) MG_Error( "unable to get resulting pyramid tag" ); + + *domain = tag; + + ++_count; + } + void ReadCorner( int* node ) { if ( _count <= ReadNbCorners() ) -- 2.39.2