// File : SMESH_Command.cxx
// Author : Yves FRICAUD, OCC
// Module : SMESH
-// $Header:
//
#include "SMESHDS_Command.hxx"
//function : AddPolygonalFace
//purpose :
//=======================================================================
-void SMESHDS_Command::AddPolygonalFace (const int ElementID,
- std::vector<int> nodes_ids)
+void SMESHDS_Command::AddPolygonalFace (const int ElementID,
+ const std::vector<int>& nodes_ids)
{
if (!myType == SMESHDS_AddPolygon) {
MESSAGE("SMESHDS_Command::AddPolygonalFace : Bad Type");
//function : AddPolyhedralVolume
//purpose :
//=======================================================================
-void SMESHDS_Command::AddPolyhedralVolume (const int ElementID,
- std::vector<int> nodes_ids,
- std::vector<int> quantities)
+void SMESHDS_Command::AddPolyhedralVolume (const int ElementID,
+ const std::vector<int>& nodes_ids,
+ const std::vector<int>& quantities)
{
if (!myType == SMESHDS_AddPolyhedron) {
MESSAGE("SMESHDS_Command::AddPolyhedralVolume : Bad Type");
//function : ChangePolyhedronNodes
//purpose :
//=======================================================================
-void SMESHDS_Command::ChangePolyhedronNodes (const int ElementID,
- std::vector<int> nodes_ids,
- std::vector<int> quantities)
+void SMESHDS_Command::ChangePolyhedronNodes (const int ElementID,
+ const std::vector<int>& nodes_ids,
+ const std::vector<int>& quantities)
{
if (myType != SMESHDS_ChangePolyhedronNodes)
{
myNumber++;
}
+//================================================================================
+/*!
+ * \brief Record adding a Ball
+ */
+//================================================================================
+
+void SMESHDS_Command::AddBall(int NewBallID, int node, double diameter)
+{
+ if (!myType == SMESHDS_AddBall)
+ {
+ MESSAGE("SMESHDS_Command::SMESHDS_AddBall : Bad Type");
+ return;
+ }
+ myIntegers.push_back(NewBallID);
+ myIntegers.push_back(node);
+ myReals.push_back(diameter);
+ myNumber++;
+}