- Handle(SMESHDS_Command) com;
- if (myCommands.IsEmpty()) {
- com = new SMESHDS_Command(SMESHDS_RemoveElement);
- myCommands.Append (com);
- }
- else {
- com = myCommands.Last();
- if (com->GetType() != SMESHDS_RemoveElement) {
- com = new SMESHDS_Command(SMESHDS_RemoveElement);
- myCommands.Append (com);
- }
- }
- com->RemoveElement (ElementID);
+ getCommand(SMESHDS_RemoveNode)->RemoveNode(ID);
+}
+
+//=======================================================================
+//function :
+//purpose :
+//=======================================================================
+void SMESHDS_Script::RemoveElement(int 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 : ChangePolyhedronNodes
+//purpose :
+//=======================================================================
+void SMESHDS_Script::ChangePolyhedronNodes (const int ElementID,
+ std::vector<int> nodes_ids,
+ std::vector<int> quantities)
+{
+ getCommand(SMESHDS_ChangePolyhedronNodes)->ChangePolyhedronNodes
+ (ElementID, nodes_ids, quantities);
+}
+
+//=======================================================================
+//function : Renumber
+//purpose :
+//=======================================================================
+
+void SMESHDS_Script::Renumber (const bool isNodes, const int startID, const int deltaID)
+{
+ getCommand(SMESHDS_Renumber)->Renumber( isNodes, startID, deltaID );