1 |
francois |
1158 |
//####//------------------------------------------------------------ |
2 |
|
|
//####//------------------------------------------------------------ |
3 |
|
|
//####// MAGiC |
4 |
|
|
//####// Jean Christophe Cuilliere et Vincent FRANCOIS |
5 |
|
|
//####// Departement de Genie Mecanique - UQTR |
6 |
|
|
//####//------------------------------------------------------------ |
7 |
|
|
//####// MAGIC est un projet de recherche de l equipe ERICCA |
8 |
|
|
//####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres |
9 |
|
|
//####// http://www.uqtr.ca/ericca |
10 |
|
|
//####// http://www.uqtr.ca/ |
11 |
|
|
//####//------------------------------------------------------------ |
12 |
|
|
//####//------------------------------------------------------------ |
13 |
|
|
//####// |
14 |
|
|
//####// sld_surface.h |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:54 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
foucault |
27 |
#ifdef BREP_SLD |
23 |
|
|
|
24 |
|
|
#ifndef __SLDSURFACE_ |
25 |
|
|
#define __SLDSURFACE_ |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
#include "mg_surface.h" |
31 |
|
|
#include "SldWorks_TLB.h" |
32 |
|
|
#include "SwConst_TLB.h" |
33 |
|
|
#include <atl\atlmod.h> |
34 |
|
|
|
35 |
|
|
|
36 |
francois |
1158 |
class SLD_SURFACE:public MG_SURFACE |
37 |
foucault |
27 |
{ |
38 |
|
|
public: |
39 |
francois |
283 |
SLD_SURFACE(unsigned long num , std::string idface,class SLD_FONCTION& fonc ); |
40 |
|
|
SLD_SURFACE(std::string idface,SLD_FONCTION& fonc ); |
41 |
|
|
SLD_SURFACE(std::string idface, SLD_FONCTION& fonc, CComPtr<IFace2> & p_swFace); |
42 |
foucault |
27 |
|
43 |
francois |
283 |
virtual ~SLD_SURFACE(); |
44 |
|
|
virtual void evaluer(double *uv,double *xyz); |
45 |
|
|
virtual void deriver(double *uv,double *xyzdu, double *xyzdv); |
46 |
|
|
virtual void deriver_seconde(double *uv,double* xyzduu,double* xyzduv,double* xyzdvv,double *xyz = NULL , double *xyzdu = NULL , double *xyzdv =NULL); |
47 |
|
|
virtual void inverser(double *uv,double *xyz,double precision=1e-6); |
48 |
|
|
virtual int est_periodique_u(void); |
49 |
|
|
virtual int est_periodique_v(void); |
50 |
|
|
virtual double get_periode_u(void); |
51 |
|
|
virtual double get_periode_v(void); |
52 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
53 |
francois |
283 |
virtual double get_umin(); |
54 |
|
|
virtual double get_umax(); |
55 |
|
|
virtual double get_vmin(); |
56 |
|
|
virtual double get_vmax(); |
57 |
foucault |
27 |
|
58 |
francois |
283 |
virtual int get_type_geometrique(TPL_LISTE_ENTITE<double> ¶m); |
59 |
|
|
virtual void get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> ¶m); |
60 |
foucault |
27 |
|
61 |
|
|
private: |
62 |
francois |
283 |
CComPtr<IFace2> swFace; |
63 |
|
|
CComPtr<ISurface> swSurface; |
64 |
|
|
virtual void initialisation(std::string idface); |
65 |
|
|
virtual void initialisation(); |
66 |
|
|
SLD_FONCTION& fonction; |
67 |
|
|
class ST_SURFACE *stsurface; |
68 |
|
|
std::string idoriginal; |
69 |
foucault |
27 |
} ; |
70 |
|
|
|
71 |
|
|
#endif |
72 |
|
|
#endif |
73 |
|
|
|