CURRENT_DIR=`pwd`
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
cd ${CONF_DIR}
-python $KERNEL_ROOT_DIR/salome_adm/cmake_files/am2cmake.py --blsurfplugin
+python $KERNEL_ROOT_DIR/salome_adm/cmake_files/deprecated/am2cmake.py --blsurfplugin
status=$?
cd ${CURRENT_DIR}
exit $status
# Author : Vadim SANDLER, Open CASCADE S.A.S (vadim.sandler@opencascade.com)
# ---
#
-AC_INIT([Salome2 Project BLSURFPLUGIN module], [6.6.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
+AC_INIT([Salome2 Project BLSURFPLUGIN module], [7.0.0], [webmaster.salome@opencascade.com], [SalomeBLSURFPLUGIN])
AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
}
/* retrieve mesh data (see meshgems/mesh.h) */
- integer nv, ne, nt, nq, vtx[4], tag;
- integer *evedg, *evtri, *evquad, type;
+ integer nv, ne, nt, nq, vtx[4], tag, nb_tag;
+ integer *evedg, *evtri, *evquad, *tags_buff, type;
real xyz[3];
mesh_get_vertex_count(msh, &nv);
evedg = (integer *)mesh_calloc_generic_buffer(msh);
evtri = (integer *)mesh_calloc_generic_buffer(msh);
evquad = (integer *)mesh_calloc_generic_buffer(msh);
+ tags_buff = (integer*)mesh_calloc_generic_buffer(msh);
SMDS_MeshNode** nodes = new SMDS_MeshNode*[nv+1];
bool* tags = new bool[nv+1];
mesh_get_edge_vertices(msh, it, vtx);
mesh_get_edge_extra_vertices(msh, it, &type, evedg);
mesh_get_edge_tag(msh, it, &tag);
+
+ // If PreCAD performed some cleaning operations (remove tiny edges,
+ // merge edges ...) an output tag can indeed represent several original tags.
+ // Get the initial tags corresponding to the output tag and redefine the tag as
+ // the last of the two initial tags (else the output tag is out of emap and hasn't any meaning)
+ mesh_get_composite_tag_definition(msh, tag, &nb_tag, tags_buff);
+ if(nb_tag > 1)
+ tag=tags_buff[nb_tag-1];
+
if (tags[vtx[0]]) {
Set_NodeOnEdge(meshDS, nodes[vtx[0]], emap(tag));
tags[vtx[0]] = false;