@@ -41,7 +41,7 @@ class MeshDS_DataSource : public MeshVS_DataSource
4141 // ! Initialize data source with vector of nodes and vector of elements (triangles or quadrangles)
4242 // ! Face normals are calculated using the three first nodes of each element
4343 // ! Node normals are calculated averaging the normals of the neighboring elements
44- MeshDS_DataSource (std::vector<gp_Pnt>& CoordData, std::vector<std::vector<int >>& Ele2NodeData);
44+ MeshDS_DataSource (const std::vector<gp_Pnt>& CoordData, const std::vector<std::vector<int >>& Ele2NodeData);
4545
4646 MeshDS_DataSource (double * Vertices, int nVerts1, int nVerts2, int * Faces, int nFaces1, int nFaces2);
4747
@@ -51,10 +51,10 @@ class MeshDS_DataSource : public MeshVS_DataSource
5151 MeshDS_DataSource (const Handle (Poly_Triangulation)& polyTri);
5252
5353 // ! This method define the normal of the face for each element
54- void SetElemNormals (std::vector<gp_Vec>& ElemNormalsData);
54+ void SetElemNormals (const std::vector<gp_Vec>& ElemNormalsData);
5555
5656 // ! This method define the normal of all nodes for each element
57- void SetNodeNormals (std::vector<std::vector<gp_Vec>>& NodeNormalsData);
57+ void SetNodeNormals (const std::vector<std::vector<gp_Vec>>& NodeNormalsData);
5858
5959 // ! Returns geometry information about node ( if IsElement is False ) or element ( IsElement is True )
6060 // ! by co-ordinates. For element this method must return all its nodes co-ordinates in the strict order: X, Y, Z and
@@ -98,7 +98,7 @@ class MeshDS_DataSource : public MeshVS_DataSource
9898 Handle (TColStd_HArray2OfReal) myNodeCoords;
9999 Handle (TColStd_HArray2OfReal) myElemNormals;
100100 Handle (TColStd_HArray2OfReal) myNodeNormals;
101- void InitializeFromData (std::vector<gp_Pnt>& CoordData, std::vector<std::vector<int >>& Ele2NodeData);
101+ void InitializeFromData (const std::vector<gp_Pnt>& CoordData, const std::vector<std::vector<int >>& Ele2NodeData);
102102 void InitializeFromData (double * Vertices, const int nVerts1, const int nVerts2, int * Faces, const int nFaces1, const int nFaces2);
103103};
104104
0 commit comments