mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 00:20:36 +05:00
- 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:
parent
86c4cc3003
commit
35eb82363a
@ -1186,7 +1186,8 @@ const SMDS_MeshNode* SMESH_MesherHelper::getMediumNodeOnComposedWire(const SMDS_
|
|||||||
//purpose : Creates a node
|
//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();
|
SMESHDS_Mesh * meshDS = GetMeshDS();
|
||||||
SMDS_MeshNode* node = 0;
|
SMDS_MeshNode* node = 0;
|
||||||
@ -1198,8 +1199,8 @@ SMDS_MeshNode* SMESH_MesherHelper::AddNode(double x, double y, double z, int ID)
|
|||||||
switch ( myShape.ShapeType() ) {
|
switch ( myShape.ShapeType() ) {
|
||||||
case TopAbs_SOLID: meshDS->SetNodeInVolume( node, myShapeID); break;
|
case TopAbs_SOLID: meshDS->SetNodeInVolume( node, myShapeID); break;
|
||||||
case TopAbs_SHELL: meshDS->SetNodeInVolume( node, myShapeID); break;
|
case TopAbs_SHELL: meshDS->SetNodeInVolume( node, myShapeID); break;
|
||||||
case TopAbs_FACE: meshDS->SetNodeOnFace( node, myShapeID); break;
|
case TopAbs_FACE: meshDS->SetNodeOnFace( node, myShapeID, u, v); break;
|
||||||
case TopAbs_EDGE: meshDS->SetNodeOnEdge( node, myShapeID); break;
|
case TopAbs_EDGE: meshDS->SetNodeOnEdge( node, myShapeID, u); break;
|
||||||
case TopAbs_VERTEX: meshDS->SetNodeOnVertex( node, myShapeID); break;
|
case TopAbs_VERTEX: meshDS->SetNodeOnVertex( node, myShapeID); break;
|
||||||
default: ;
|
default: ;
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ public:
|
|||||||
/*!
|
/*!
|
||||||
* Creates a node
|
* 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
|
* Creates quadratic or linear edge
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user