Include :
- aggiunta interfaccia per interpolazione di punti con curve.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2014-2014
|
||||
//----------------------------------------------------------------------------
|
||||
// File : EGkCurveByInterp.h Data : 05.08.14 Versione : 1.5h1
|
||||
// Contenuto : Dichiarazione della classe CurveByInterp.
|
||||
//
|
||||
//
|
||||
//
|
||||
// Modifiche : 05.08.14 DS Creazione modulo.
|
||||
//
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include"/EgtDev/Include/EGkGeoCollection.h"
|
||||
|
||||
class ICurve ;
|
||||
|
||||
//----------------------- Macro per import/export ----------------------------
|
||||
#undef EGK_EXPORT
|
||||
#if defined( I_AM_EGK) // da definirsi solo nella DLL
|
||||
#define EGK_EXPORT __declspec( dllexport)
|
||||
#else
|
||||
#define EGK_EXPORT __declspec( dllimport)
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
class CurveByInterp
|
||||
{
|
||||
|
||||
public :
|
||||
EGK_EXPORT bool Start( void) ;
|
||||
EGK_EXPORT bool AddPoint( const Point3d& ptP) ;
|
||||
EGK_EXPORT bool End( void) ;
|
||||
EGK_EXPORT ICurve* GetCurve( int nMethod, int nType) ;
|
||||
|
||||
public :
|
||||
EGK_EXPORT enum METHOD { BESSEL = 1, AKIMA = 2, AKIMA_CORNER = 3} ;
|
||||
EGK_EXPORT enum TYPE { BIARCS = 1, CUBIC_BEZIERS = 2} ;
|
||||
|
||||
private :
|
||||
bool CalcTangents( int nMethod) ;
|
||||
|
||||
private :
|
||||
PNTVECTOR m_vPnt ;
|
||||
DBLVECTOR m_vPar ;
|
||||
VCT3DVECTOR m_vPrevDer ;
|
||||
VCT3DVECTOR m_vNextDer ;
|
||||
} ;
|
||||
@@ -38,3 +38,8 @@ typedef std::list<BIPOINT> BIPNTLIST ; // lista di coppie punto1, punto2
|
||||
// Raccolte di Punti di curva con loro geometria differenziale
|
||||
typedef std::vector<CrvPointDiffGeom> CPDGVECTOR ; // vettore di CrvPointDiffGeom
|
||||
typedef std::list<CrvPointDiffGeom> CPDGLIST ; // lista di CrvPointDiffGeom
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Raccolte di Vector3d
|
||||
typedef std::vector<Vector3d> VCT3DVECTOR ; // vettore di vettori 3d
|
||||
typedef std::list<Vector3d> VCT3DLIST ; // lista di vettori 3d
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ class __declspec( novtable) IGeomDB
|
||||
// selection
|
||||
virtual bool SelectObj( int nId) = 0 ;
|
||||
virtual bool DeselectObj( int nId) = 0 ;
|
||||
virtual bool SelectGroupObjs( int nId) = 0 ;
|
||||
virtual bool SelectGroupObjs( int nId, int nFilter = 0) = 0 ;
|
||||
virtual bool DeselectGroupObjs( int nId) = 0 ;
|
||||
virtual bool IsSelectedObj( int nId) const = 0 ;
|
||||
virtual int GetSelectedObjNbr( void) const = 0 ;
|
||||
|
||||
@@ -34,7 +34,7 @@ class StmFromTriangleSoup
|
||||
EGK_EXPORT StmFromTriangleSoup( void) ;
|
||||
EGK_EXPORT ~StmFromTriangleSoup( void) ;
|
||||
EGK_EXPORT bool Start( int nBuckets = GRID_STD_BUCKETS) ;
|
||||
EGK_EXPORT bool AddTriangle( Triangle3d& Tria) ;
|
||||
EGK_EXPORT bool AddTriangle( const Triangle3d& Tria) ;
|
||||
EGK_EXPORT bool End( void) ;
|
||||
EGK_EXPORT ISurfTriMesh* GetSurf( void) ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user