X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOCC2VTK%2FGEOM_EdgeSource.cxx;h=df75c684f342aee14480379ef30ea3c70a6635b1;hb=ddba4567471480cd43b3f2731ede2db3e7b61bf0;hp=a76c4e86fef27f419b26088cce6e321c3c0e47b8;hpb=5e3080a50e2ddb3beb564c81d4b8b5aa62fe86e3;p=modules%2Fgeom.git diff --git a/src/OCC2VTK/GEOM_EdgeSource.cxx b/src/OCC2VTK/GEOM_EdgeSource.cxx old mode 100755 new mode 100644 index a76c4e86f..df75c684f --- a/src/OCC2VTK/GEOM_EdgeSource.cxx +++ b/src/OCC2VTK/GEOM_EdgeSource.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -37,10 +37,11 @@ #include #include -vtkStandardNewMacro(GEOM_EdgeSource); +vtkStandardNewMacro(GEOM_EdgeSource) GEOM_EdgeSource::GEOM_EdgeSource() : - myIsVector(false) + myIsVector(false), + myIsVectorMode(false) { this->SetNumberOfInputPorts(0); } @@ -138,17 +139,16 @@ void GEOM_EdgeSource::OCC2VTK (const TopoDS_Edge& theEdge, } else { Standard_Integer aNbNodes = aEdgePoly->NbNodes(); const TColStd_Array1OfInteger& aNodeIds = aEdgePoly->Nodes(); - const TColgp_Array1OfPnt& anId2Pnts = T->Nodes(); - aP1 = anId2Pnts(aNodeIds(1)); - aP2 = anId2Pnts(aNodeIds(aNbNodes)); + aP1 = T->Node(aNodeIds(1)); + aP2 = T->Node(aNodeIds(aNbNodes)); for(int j = 1; j < aNbNodes; j++) { Standard_Integer id1 = aNodeIds(j); Standard_Integer id2 = aNodeIds(j+1); - gp_Pnt pt1 = anId2Pnts(id1); - gp_Pnt pt2 = anId2Pnts(id2); + gp_Pnt pt1 = T->Node(id1); + gp_Pnt pt2 = T->Node(id2); if(!isidtrsf) { // apply edge transformation