Include :

- aggiornamento interfacce per GeomKernel.
This commit is contained in:
Dario Sassi
2014-05-06 07:46:52 +00:00
parent 4cf56692ae
commit 046f42156d
3 changed files with 16 additions and 12 deletions
+2 -1
View File
@@ -19,9 +19,10 @@
const double ONEMM = 1.0 ;
const double ONEINCH = 25.4 ;
// epsilon per lunghezze e versori
// epsilon per lunghezze, versori e parametri
const double EPS_SMALL = 1e-3 ;
const double EPS_ZERO = 1e-7 ;
const double EPS_PARAM = 1e-7 ;
// infinito per lunghezze
const double INFINITO = 1e10 ;
+10 -10
View File
@@ -42,25 +42,25 @@ class PolyLine
EGK_EXPORT int GetPointNbr( void) const
{ return m_nCount ; }
EGK_EXPORT bool GetFirstUPoint( double* pdPar, Point3d* pptP) const ;
EGK_EXPORT bool GetNextUPoint( double* pdPar, Point3d* pptP) const ;
EGK_EXPORT bool GetNextUPoint( double* pdPar, Point3d* pptP, bool bNotLast = false) const ;
EGK_EXPORT bool GetFirstU( double& dPar) const
{ return GetFirstUPoint( &dPar, nullptr) ; }
EGK_EXPORT bool GetNextU( double& dPar) const
{ return GetNextUPoint( &dPar, nullptr) ; }
EGK_EXPORT bool GetNextU( double& dPar, bool bNotLast = false) const
{ return GetNextUPoint( &dPar, nullptr, bNotLast) ; }
EGK_EXPORT bool GetFirstPoint( Point3d& ptP) const
{ return GetFirstUPoint( nullptr, &ptP) ; }
EGK_EXPORT bool GetNextPoint( Point3d& ptP) const
{ return GetNextUPoint( nullptr, &ptP) ; }
EGK_EXPORT bool GetNextPoint( Point3d& ptP, bool bNotLast = false) const
{ return GetNextUPoint( nullptr, &ptP, bNotLast) ; }
EGK_EXPORT bool GetLastUPoint( double* pdPar, Point3d* pptP) const ;
EGK_EXPORT bool GetPrevUPoint( double* pdPar, Point3d* pptP) const ;
EGK_EXPORT bool GetPrevUPoint( double* pdPar, Point3d* pptP, bool bNotFirst = false) const ;
EGK_EXPORT bool GetLastU( double& dPar) const
{ return GetLastUPoint( &dPar, nullptr) ; }
EGK_EXPORT bool GetPrevU( double& dPar) const
{ return GetPrevUPoint( &dPar, nullptr) ; }
EGK_EXPORT bool GetPrevU( double& dPar, bool bNotFirst = false) const
{ return GetPrevUPoint( &dPar, nullptr, bNotFirst) ; }
EGK_EXPORT bool GetLastPoint( Point3d& ptP) const
{ return GetLastUPoint( nullptr, &ptP) ; }
EGK_EXPORT bool GetPrevPoint( Point3d& ptP) const
{ return GetPrevUPoint( nullptr, &ptP) ; }
EGK_EXPORT bool GetPrevPoint( Point3d& ptP, bool bNotFirst = false) const
{ return GetPrevUPoint( nullptr, &ptP, bNotFirst) ; }
EGK_EXPORT int GetLineNbr( void) const
{ return ( m_nCount > 1 ? ( m_nCount - 1) : 0) ; }
EGK_EXPORT bool GetFirstULine( double* pdIni, Point3d* pptIni, double* pdFin, Point3d* pptFin) const ;
+4 -1
View File
@@ -31,10 +31,13 @@ class __declspec( novtable) ISurfTriMesh : public ISurf
virtual int AddVertex( const Point3d& ptVert) = 0 ;
virtual int AddTriangle( const int nIdVert[3]) = 0 ;
virtual bool AdjustTopology( void) = 0 ;
virtual bool CreateByTriangulation( const PolyLine& PL) = 0 ;
virtual bool CreateByFlatContour( const PolyLine& PL) = 0 ;
virtual bool CreateByExtrusion( const PolyLine& PL, const Vector3d& vtExtr) = 0 ;
virtual bool CreateByTwoCurves( const PolyLine& PL1, const PolyLine& PL2) = 0 ;
virtual bool CreateByRevolution( const PolyLine& PL, const Point3d& ptAx, const Vector3d& vtAx,
double dAngRot, double dStepRot) = 0 ;
virtual bool CreateByScrewing( const PolyLine& PL, const Point3d& ptAx, const Vector3d& vtAx,
double dAngRot, double dStepRot, double dMove) = 0 ;
virtual int GetVertexNum( void) const = 0 ;
virtual int GetTriangleNum( void) const = 0 ;
virtual int GetFirstVertex( Point3d& ptP) const = 0 ;