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