-void SMESHDS_Mesh::SetNodeOnVertex (const Handle(SMDS_MeshNode)& aNode,
- const TopoDS_Vertex& S)
-{
- if (myShape.IsNull())
- Standard_NullObject::Raise("SMESHDS_Mesh::SetNodeOnVertex");
-
- Standard_Integer Index = myIndexToShape.FindIndex(S);
-
- //Set Position on Node
- Handle (SMDS_VertexPosition) aPos = new SMDS_VertexPosition (Index);;
- aNode->SetPosition(aPos);
-
- //Update or build submesh
- if (!myShapeIndexToSubMesh.IsBound(Index)) {
- Handle(SMESHDS_SubMesh) SM = new SMESHDS_SubMesh (this);
- myShapeIndexToSubMesh.Bind(Index,SM);
- }
- myShapeIndexToSubMesh(Index)->AddNode (aNode);
-}
+void SMESHDS_Mesh::SetNodeOnVertex(SMDS_MeshNode * aNode,
+ const TopoDS_Vertex & S)
+{
+ if (myShape.IsNull()) MESSAGE("myShape is NULL");