| 1 |
francois |
283 |
//--------------------------------------------------------------------------- |
| 2 |
|
|
//------------------------------------------------------------ |
| 3 |
|
|
//------------------------------------------------------------ |
| 4 |
|
|
// MAGiC |
| 5 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
| 6 |
|
|
// D�partement de G�nie M�canique - UQTR |
| 7 |
|
|
//------------------------------------------------------------ |
| 8 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
| 9 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
| 10 |
|
|
// Trois Rivi�res |
| 11 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
| 12 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
| 13 |
|
|
//------------------------------------------------------------ |
| 14 |
|
|
//------------------------------------------------------------ |
| 15 |
|
|
// |
| 16 |
|
|
// OCC_Courbe.h |
| 17 |
|
|
// |
| 18 |
|
|
//------------------------------------------------------------ |
| 19 |
|
|
//------------------------------------------------------------ |
| 20 |
|
|
// COPYRIGHT 2000 |
| 21 |
|
|
// Version du 02/03/2006 � 11H22 |
| 22 |
|
|
//------------------------------------------------------------ |
| 23 |
|
|
//------------------------------------------------------------ |
| 24 |
|
|
//--------------------------------------------------------------------------- |
| 25 |
|
|
#ifdef BREP_OCC |
| 26 |
|
|
#ifndef OCC_CourbeH |
| 27 |
|
|
#define OCC_CourbeH |
| 28 |
|
|
//--------------------------------------------------------------------------- |
| 29 |
|
|
|
| 30 |
|
|
#ifdef WINDOWS_VERSION |
| 31 |
|
|
#ifdef BUILT_DLL_GEOMETRIE |
| 32 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport) |
| 33 |
|
|
#else |
| 34 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport) |
| 35 |
|
|
#endif |
| 36 |
|
|
#else |
| 37 |
|
|
#define DLLPORTGEOMETRIE |
| 38 |
|
|
#endif |
| 39 |
|
|
|
| 40 |
|
|
|
| 41 |
|
|
|
| 42 |
|
|
#include "mg_courbe.h" |
| 43 |
|
|
#include "Geom_Curve.hxx" |
| 44 |
couturad |
740 |
#include "occ_fonction.h" |
| 45 |
francois |
283 |
#include "TopoDS_Edge.hxx" |
| 46 |
|
|
|
| 47 |
|
|
|
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
|
| 51 |
|
|
|
| 52 |
|
|
class DLLPORTGEOMETRIE OCC_COURBE:public MG_COURBE |
| 53 |
|
|
{ |
| 54 |
|
|
public: |
| 55 |
couturad |
740 |
OCC_COURBE(unsigned long num,TopoDS_Edge crb, OCC_FONCTION& fonc); |
| 56 |
|
|
OCC_COURBE(TopoDS_Edge crb, OCC_FONCTION& fonc); |
| 57 |
francois |
283 |
OCC_COURBE(OCC_COURBE& mdd); |
| 58 |
|
|
virtual ~OCC_COURBE(); |
| 59 |
|
|
virtual void evaluer(double t, double *xyz); |
| 60 |
|
|
virtual void deriver(double t, double *xyz ); |
| 61 |
|
|
virtual void deriver_seconde(double t,double *ddxyz,double *dxyz,double *xyz); |
| 62 |
|
|
virtual void inverser(double& t,double *xyz,double precision=1e-6); |
| 63 |
|
|
virtual int est_periodique(void); |
| 64 |
|
|
virtual double get_periode(void); |
| 65 |
|
|
virtual double get_longueur(double t1,double t2,double precis=1e-6); |
| 66 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
| 67 |
francois |
283 |
|
| 68 |
|
|
virtual int get_type_geometrique(TPL_LISTE_ENTITE<double> ¶m); |
| 69 |
|
|
virtual void get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> ¶m); |
| 70 |
|
|
|
| 71 |
|
|
private: |
| 72 |
|
|
TopoDS_Edge edge; |
| 73 |
couturad |
740 |
class OCC_FONCTION& fonction1; |
| 74 |
francois |
283 |
|
| 75 |
|
|
|
| 76 |
|
|
}; |
| 77 |
|
|
|
| 78 |
|
|
|
| 79 |
|
|
#endif |
| 80 |
|
|
#endif |