Salome HOME
projects
/
plugins
/
gmshplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f01cc0
)
[bos #36460][EDF] Define (u,v) coordinates in meshed faces. Solve Projection1D2D...
cce/36460
master
7/head
author
cconopoima
<cesar.conopoima@gmail.com>
Mon, 18 Mar 2024 16:19:36 +0000
(16:19 +0000)
committer
cconopoima
<cesar.conopoima@gmail.com>
Mon, 18 Mar 2024 16:19:36 +0000
(16:19 +0000)
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
patch
|
blob
|
history
diff --git
a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx
index efb85605fb7f2a0a063076c96acd117482c6edec..8814f9d99f3f396afbd2676aebe1339ad8ed89ed 100644
(file)
--- a/
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
+++ b/
src/GMSHPlugin/GMSHPlugin_Mesher.cxx
@@
-1152,12
+1152,15
@@
void GMSHPlugin_Mesher::FillSMesh()
MVertex *v = gFace->mesh_vertices[i];
if ( v->getIndex() >= 0 )
{
MVertex *v = gFace->mesh_vertices[i];
if ( v->getIndex() >= 0 )
{
+ double U,V;
+ gFace->XYZtoUV( v->x(),v->y(),v->z(), U, V, 1.0 );
+
SMDS_MeshNode *node = meshDS->AddNode( v->x(),v->y(),v->z() );
if ( isCompound )
topoFace = TopoDS::Face( getShapeAtPoint( v->point(), topoFaces ));
SMDS_MeshNode *node = meshDS->AddNode( v->x(),v->y(),v->z() );
if ( isCompound )
topoFace = TopoDS::Face( getShapeAtPoint( v->point(), topoFaces ));
- meshDS->SetNodeOnFace( node, topoFace );
+ meshDS->SetNodeOnFace( node, topoFace
, U, V
);
_nodeMap.insert({ v, node });
}
}
_nodeMap.insert({ v, node });
}
}
@@
-1204,7
+1207,9
@@
void GMSHPlugin_Mesher::FillSMesh()
if(verts[j]->onWhat()->getVisibility() == 0)
{
SMDS_MeshNode *node = meshDS->AddNode(verts[j]->x(),verts[j]->y(),verts[j]->z());
if(verts[j]->onWhat()->getVisibility() == 0)
{
SMDS_MeshNode *node = meshDS->AddNode(verts[j]->x(),verts[j]->y(),verts[j]->z());
- meshDS->SetNodeOnFace( node, topoFace );
+ double U,V;
+ gFace->XYZtoUV( verts[j]->x(),verts[j]->y(),verts[j]->z(), U, V, 1.0 );
+ meshDS->SetNodeOnFace( node, topoFace, U, V );
_nodeMap.insert({ verts[j], node });
verts[j]->setEntity(gFace);
}
_nodeMap.insert({ verts[j], node });
verts[j]->setEntity(gFace);
}