From: eap Date: Fri, 23 Oct 2020 09:58:26 +0000 (+0300) Subject: IPAL054703: TC-9.6.0: GHS3DPLUGIN does not compile if option SALOME_USE_MG_LIBS is... X-Git-Tag: V9_6_0rc1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f488b117fcb54695986ed43523b8b3967463fb2;p=plugins%2Fhybridplugin.git IPAL054703: TC-9.6.0: GHS3DPLUGIN does not compile if option SALOME_USE_MG_LIBS is set to ON --- 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() )