Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 155974 | Differences between
and this patch

Collapse All | Expand All

(-)src3.2.6.old/GEOM_SRC_3.2.6/src/OBJECT/GEOM_OCCReader.cxx (-12 / +12 lines)
Lines 88-94 Link Here
88
static Standard_Real HatcherConfusion2d   = 1.e-8 ;
88
static Standard_Real HatcherConfusion2d   = 1.e-8 ;
89
static Standard_Real HatcherConfusion3d   = 1.e-8 ;
89
static Standard_Real HatcherConfusion3d   = 1.e-8 ;
90
90
91
static Standard_Integer lastVTKpoint = 0;
91
static vtkIdType lastVTKpoint = 0;
92
static Standard_Integer PlotCount = 0;
92
static Standard_Integer PlotCount = 0;
93
static Standard_Real IsoRatio = 1.001;
93
static Standard_Real IsoRatio = 1.001;
94
static Standard_Integer MaxPlotCount = 5; 
94
static Standard_Integer MaxPlotCount = 5; 
Lines 483-491 Link Here
483
{
483
{
484
  float coord[3];
484
  float coord[3];
485
  coord[0] = P.X(); coord[1] = P.Y(); coord[2] = P.Z();
485
  coord[0] = P.X(); coord[1] = P.Y(); coord[2] = P.Z();
486
  Standard_Integer NewVTKpoint =  Pts->InsertNextPoint(coord);
486
  vtkIdType NewVTKpoint =  Pts->InsertNextPoint(coord);
487
487
488
  int pts[2];
488
  vtkIdType pts[2];
489
  pts[0] = lastVTKpoint;
489
  pts[0] = lastVTKpoint;
490
  pts[1] = NewVTKpoint;
490
  pts[1] = NewVTKpoint;
491
491
Lines 751-757 Link Here
751
    aP2 = theNodesP(nbnodes);
751
    aP2 = theNodesP(nbnodes);
752
752
753
    float coord[3];
753
    float coord[3];
754
    int pts[2];
754
    vtkIdType pts[2];
755
755
756
    for(int j=1;j<nbnodes;j++) {
756
    for(int j=1;j<nbnodes;j++) {
757
      gp_Pnt pt1 = theNodesP(j);
757
      gp_Pnt pt1 = theNodesP(j);
Lines 783-789 Link Here
783
    aP2 = theNodesPoly(nbnodes);
783
    aP2 = theNodesPoly(nbnodes);
784
784
785
    float coord[3];
785
    float coord[3];
786
    int pts[2];
786
    vtkIdType pts[2];
787
    
787
    
788
    for(int j=1;j<nbnodes;j++) {
788
    for(int j=1;j<nbnodes;j++) {
789
      Standard_Integer id1 = Nodesidx(j);
789
      Standard_Integer id1 = Nodesidx(j);
Lines 854-865 Link Here
854
    float coord[3];
854
    float coord[3];
855
    coord[0] = xo; coord[1] = yo; coord[2] = zo;
855
    coord[0] = xo; coord[1] = yo; coord[2] = zo;
856
856
857
    int ptLoc = Pts->InsertNextPoint(coord);
857
    vtkIdType ptLoc = Pts->InsertNextPoint(coord);
858
    int ptFirst = 0;
858
    vtkIdType ptFirst = 0;
859
    int ptPrev = 0;
859
    vtkIdType ptPrev = 0;
860
    int ptCur = 0;
860
    vtkIdType ptCur = 0;
861
861
862
    int pts[2];
862
    vtkIdType pts[2];
863
863
864
    int NbPoints = 15;
864
    int NbPoints = 15;
865
    for (int i = 1; i <= NbPoints; i++, ptPrev = ptCur)
865
    for (int i = 1; i <= NbPoints; i++, ptPrev = ptCur)
Lines 947-953 Link Here
947
  
947
  
948
  gp_Pnt P = BRep_Tool::Pnt( aVertex );
948
  gp_Pnt P = BRep_Tool::Pnt( aVertex );
949
  float delta = 1, coord[3];
949
  float delta = 1, coord[3];
950
  int pts[2];
950
  vtkIdType pts[2];
951
  // insert pt
951
  // insert pt
952
  ZERO_COORD; coord[0] = +delta;
952
  ZERO_COORD; coord[0] = +delta;
953
  pts[0] = Pts->InsertNextPoint(coord);
953
  pts[0] = Pts->InsertNextPoint(coord);
Lines 1026-1032 Link Here
1026
      Standard_Integer N1,N2,N3;
1026
      Standard_Integer N1,N2,N3;
1027
      Triangles(i).Get(N1,N2,N3);
1027
      Triangles(i).Get(N1,N2,N3);
1028
	
1028
	
1029
      int pts[3];
1029
      vtkIdType pts[3];
1030
      pts[0] = N1-1; pts[1] = N2-1; pts[2] = N3-1;
1030
      pts[0] = N1-1; pts[1] = N2-1; pts[2] = N3-1;
1031
      Cells->InsertNextCell(3,pts);
1031
      Cells->InsertNextCell(3,pts);
1032
1032

Return to bug 155974