// File: IntPolyh_ArrayOfSectionLines.cxx // Created: Tue Apr 6 11:05:39 1999 // Author: Fabrice SERVANT // #include #include #include IntPolyh_ArrayOfSectionLines::IntPolyh_ArrayOfSectionLines() : n(0),nbsectionlines(0),ptr(0) { } IntPolyh_ArrayOfSectionLines::IntPolyh_ArrayOfSectionLines(const Standard_Integer N) : nbsectionlines(0){ Init(N); } void IntPolyh_ArrayOfSectionLines::Init(const Standard_Integer N) { Destroy(); ptr = (void*) (new IntPolyh_SectionLine [N]); n=N; } Standard_Integer IntPolyh_ArrayOfSectionLines::GetN() const { return(n); } Standard_Integer IntPolyh_ArrayOfSectionLines::NbSectionLines() const { return(nbsectionlines); } void IntPolyh_ArrayOfSectionLines::IncrementNbSectionLines() { nbsectionlines++; } #define BORNES1 const IntPolyh_SectionLine& IntPolyh_ArrayOfSectionLines::Value(const Standard_Integer Index) const { IntPolyh_SectionLine *ptrstpoint = (IntPolyh_SectionLine *)ptr; #if BORNES if(Index<0 || Index>=n) { cerr<<" Erreur1 "<=n) { cerr<<" Erreur1 "< %d",nbsectionlines-1); for(Standard_Integer i=0;i