From b288bf713b61a614bc556a67c7f9de00d2703428 Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 11 May 2010 15:53:26 +0000 Subject: [PATCH] Fix of Issue 0020656 (Use vertex coordinates) commented because enforced vertices are badly taken into account --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 7870d31..6994719 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -438,6 +438,7 @@ void createEnforcedVertexOnFace(TopoDS_Shape GeomShape, BLSURFPlugin_Hypothesis: Standard_Real y0 = xyzPoint.Y(); Standard_Real z0 = xyzPoint.Z(); MESSAGE("Projected Vertex: " << x0 << ", " << y0 << ", " << z0); + MESSAGE("Parametric coordinates: " << u0 << ", " << v0 ); coords.push_back(u0); coords.push_back(v0); coords.push_back(x0); @@ -1012,7 +1013,7 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) MESSAGE("Face indice: " << iface); MESSAGE("Adding enforced vertices"); evl = evmIt->second; - MESSAGE("Number of vertices to add: "<< evl.size()) + MESSAGE("Number of vertices to add: "<< evl.size()); std::set< std::vector >::const_iterator evlIt = evl.begin(); for (; evlIt != evl.end(); ++evlIt) { // ev = *evlIt; @@ -1241,10 +1242,12 @@ bool BLSURFPlugin_BLSURF::Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape) mesh_get_vertex_coordinates(msh, iv, xyz); mesh_get_vertex_tag(msh, iv, &tag); // Issue 0020656. Use vertex coordinates - if ( tag ) { - gp_Pnt p = BRep_Tool::Pnt( TopoDS::Vertex(pmap(tag))); - xyz[0] = p.X(); xyz[1] = p.Y(); xyz[2] = p.Z(); - } + // GDD: commented because enforced vertices + // are badly taken into account + //if ( tag ) { + // gp_Pnt p = BRep_Tool::Pnt( TopoDS::Vertex(pmap(tag))); + // xyz[0] = p.X(); xyz[1] = p.Y(); xyz[2] = p.Z(); + //} nodes[iv] = meshDS->AddNode(xyz[0], xyz[1], xyz[2]); // internal point are tagged to zero if(tag){ -- 2.39.2