diff --git a/EGkPolyLine.h b/EGkPolyLine.h index 52a659b..75406a1 100644 --- a/EGkPolyLine.h +++ b/EGkPolyLine.h @@ -122,6 +122,11 @@ class PolyLine m_nTempProp[nPropInd] = nProp ; } EGK_EXPORT int GetTempProp( int nPropInd = 0) const { return (( nPropInd >= 0 && nPropInd < 2) ? m_nTempProp[nPropInd] : 0) ; } + EGK_EXPORT bool FromPointVector( const PNTVECTOR& vPnt) + { Clear() ; + for( int i = 0 ; i < int( vPnt.size()) ; ++i) + { AddUPoint( i, vPnt[i]) ; } + return GetPointNbr() > 0 ; } private : bool MyChangeStart( int nPos) ;