// File: IntPolyh_ArrayOfEdges.cxx // Created: Mon Mar 8 09:32:00 1999 // Author: Fabrice SERVANT // #include #include #include IntPolyh_ArrayOfEdges::IntPolyh_ArrayOfEdges() : n(0),finte(0),ptr(0) { } IntPolyh_ArrayOfEdges::IntPolyh_ArrayOfEdges(const Standard_Integer N) : n(N),finte(0) { Init(N); } void IntPolyh_ArrayOfEdges::Init(const Standard_Integer N) { Destroy(); n=N; ptr = (void*) (new IntPolyh_Edge [n]); } const Standard_Integer IntPolyh_ArrayOfEdges::GetN() const { return(n); } const Standard_Integer IntPolyh_ArrayOfEdges::NbEdges() const { return(finte); } void IntPolyh_ArrayOfEdges::SetNbEdges(const Standard_Integer endaoe) { finte = endaoe; } void IntPolyh_ArrayOfEdges::IncNbEdges(){ finte++; } # ifdef DEB #define BORNES 1 # endif const IntPolyh_Edge& IntPolyh_ArrayOfEdges::Value(const Standard_Integer Index) const { IntPolyh_Edge* ptredge = (IntPolyh_Edge*) ptr; #if BORNES if(Index<0 || Index>=n) { cerr<<" Erreur2 value"<=n) { cerr<<" Erreur2 chgVal"< %d",n-1); for(Standard_Integer i=0;i