From: dmv Date: Tue, 30 Dec 2008 14:07:24 +0000 (+0000) Subject: 0020062: [CEA 295] Type coherence in *.i files X-Git-Tag: V4_1_5rc1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddca7f77ef6359acbc09d4321dc7e3e2b9bf01e0;p=modules%2Fgeom.git 0020062: [CEA 295] Type coherence in *.i files --- diff --git a/src/OBJECT/GEOM_OCCReader.cxx b/src/OBJECT/GEOM_OCCReader.cxx index 845e2c714..d174333b3 100644 --- a/src/OBJECT/GEOM_OCCReader.cxx +++ b/src/OBJECT/GEOM_OCCReader.cxx @@ -484,7 +484,7 @@ void GEOM_OCCReader::DrawTo(gp_Pnt P, coord[0] = P.X(); coord[1] = P.Y(); coord[2] = P.Z(); Standard_Integer NewVTKpoint = Pts->InsertNextPoint(coord); - int pts[2]; + vtkIdType pts[2]; pts[0] = lastVTKpoint; pts[1] = NewVTKpoint; @@ -750,7 +750,7 @@ void GEOM_OCCReader::TransferEdgeWData(const TopoDS_Edge& aEdge, aP2 = theNodesP(nbnodes); float coord[3]; - int pts[2]; + vtkIdType pts[2]; for(int j=1;jNodes(); float coord[3]; - int pts[2]; + vtkIdType pts[2]; // PUSH NODES @@ -924,7 +924,7 @@ void GEOM_OCCReader::TransferEdgeWData(const TopoDS_Edge& aEdge, Standard_Integer id1 = Nodesidx(i); Standard_Integer id2 = Nodesidx(i+1); - int pts[2]; + vtkIdType pts[2]; pts[0] = id1-1; pts[1] = id2-1; // insert line (pt1,pt2) @@ -946,7 +946,7 @@ void GEOM_OCCReader::TransferVertexWData(const TopoDS_Vertex& aVertex, gp_Pnt P = BRep_Tool::Pnt( aVertex ); float delta = 1, coord[3]; - int pts[2]; + vtkIdType pts[2]; // insert pt ZERO_COORD; coord[0] = +delta; pts[0] = Pts->InsertNextPoint(coord); @@ -1025,7 +1025,7 @@ void GEOM_OCCReader::TransferFaceSData(const TopoDS_Face& aFace, Standard_Integer N1,N2,N3; Triangles(i).Get(N1,N2,N3); - int pts[3]; + vtkIdType pts[3]; pts[0] = N1-1; pts[1] = N2-1; pts[2] = N3-1; Cells->InsertNextCell(3,pts);