- SMESHDS_Command * com;
- if (myCommands.empty())
- {
- com = new SMESHDS_Command(SMESHDS_RemoveElement);
- myCommands.insert(myCommands.end(),com);
- }
- else
- {
- com = myCommands.back();
- if (com->GetType() != SMESHDS_RemoveElement)
- {
- com = new SMESHDS_Command(SMESHDS_RemoveElement);
- myCommands.insert(myCommands.end(),com);
- }
- }
- com->RemoveElement(ElementID);
+ getCommand(SMESHDS_RemoveElement)->RemoveElement(ElementID);
+}
+
+//=======================================================================
+//function : ChangeElementNodes
+//purpose :
+//=======================================================================
+
+void SMESHDS_Script::ChangeElementNodes(int ElementID, int nodes[], int nbnodes)
+{
+ getCommand(SMESHDS_ChangeElementNodes)->ChangeElementNodes( ElementID, nodes, nbnodes );
+}
+
+//=======================================================================
+//function : Renumber
+//purpose :
+//=======================================================================
+
+void SMESHDS_Script::Renumber (const bool isNodes, const int startID, const int deltaID)
+{
+ getCommand(SMESHDS_Renumber)->Renumber( isNodes, startID, deltaID );