- SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0);

+  SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0, double u=0., double v=0.);
This commit is contained in:
eap 2012-06-08 07:06:43 +00:00
parent 86c4cc3003
commit 35eb82363a
2 changed files with 8 additions and 7 deletions

View File

@ -1186,7 +1186,8 @@ const SMDS_MeshNode* SMESH_MesherHelper::getMediumNodeOnComposedWire(const SMDS_
//purpose : Creates a node
//=======================================================================
SMDS_MeshNode* SMESH_MesherHelper::AddNode(double x, double y, double z, int ID)
SMDS_MeshNode* SMESH_MesherHelper::AddNode(double x, double y, double z, int ID,
double u, double v)
{
SMESHDS_Mesh * meshDS = GetMeshDS();
SMDS_MeshNode* node = 0;
@ -1198,8 +1199,8 @@ SMDS_MeshNode* SMESH_MesherHelper::AddNode(double x, double y, double z, int ID)
switch ( myShape.ShapeType() ) {
case TopAbs_SOLID: meshDS->SetNodeInVolume( node, myShapeID); break;
case TopAbs_SHELL: meshDS->SetNodeInVolume( node, myShapeID); break;
case TopAbs_FACE: meshDS->SetNodeOnFace( node, myShapeID); break;
case TopAbs_EDGE: meshDS->SetNodeOnEdge( node, myShapeID); break;
case TopAbs_FACE: meshDS->SetNodeOnFace( node, myShapeID, u, v); break;
case TopAbs_EDGE: meshDS->SetNodeOnEdge( node, myShapeID, u); break;
case TopAbs_VERTEX: meshDS->SetNodeOnVertex( node, myShapeID); break;
default: ;
}

View File

@ -221,7 +221,7 @@ public:
/*!
* Creates a node
*/
SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0);
SMDS_MeshNode* AddNode(double x, double y, double z, int ID = 0, double u=0., double v=0.);
/*!
* Creates quadratic or linear edge
*/