ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/lc_point.cpp
Revision: 1022
Committed: Fri Jun 14 16:12:32 2019 UTC (5 years, 11 months ago) by francois
File size: 2712 byte(s)
Log Message:
exportation abaqus pour les polycriataux et exportation des germes de polycristaux

File Contents

# User Rev Content
1 francois 283 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuilli�re et Vincent FRANCOIS
5     // D�partement de G�nie M�canique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du d�partement
8     // de g�nie m�canique de l'Universit� du Qu�bec �
9     // Trois Rivi�res
10     // Les librairies ne peuvent �tre utilis�es sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // lc_point.cpp
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23    
24    
25     #include "gestionversion.h"
26    
27    
28     #include "mg_point.h"
29     #include "lc_point.h"
30     #include "constantegeo.h"
31    
32    
33    
34    
35     LC_POINT::LC_POINT(unsigned long num,double coo[3]):MG_POINT(num),x(coo[0]),y(coo[1]),z(coo[2])
36     {
37     }
38    
39 francois 576 LC_POINT::LC_POINT(double xx,double yy,double zz):MG_POINT(),x(xx),y(yy),z(zz)
40     {
41     }
42    
43    
44 francois 283 LC_POINT::LC_POINT(double coo[3]):MG_POINT(),x(coo[0]),y(coo[1]),z(coo[2])
45     {
46     }
47    
48     LC_POINT::LC_POINT(LC_POINT& mdd):MG_POINT(mdd),x(mdd.x),y(mdd.y),z(mdd.z)
49     {
50     }
51    
52    
53    
54     LC_POINT::~LC_POINT()
55     {
56     }
57    
58     int LC_POINT::get_type_geometrique(TPL_LISTE_ENTITE<double> &param)
59     {
60     param.ajouter(x);
61     param.ajouter(y);
62     param.ajouter(z);
63     return MGCo_POINT;
64     }
65    
66    
67     void LC_POINT::evaluer(double *xyz)
68     {
69     xyz[0]=x;
70     xyz[1]=y;
71     xyz[2]=z;
72     }
73    
74 francois 1022
75     int LC_POINT::get_type(void)
76     {
77     return TYPE_ELEMENT_GEOMETRIQUE::LC_POINT;
78     }
79    
80    
81 francois 763 void LC_POINT::enregistrer(std::ostream& o,double version)
82 francois 283 {
83     o << "%" << get_id() << "=POINT("<< x << "," << y << "," << z << ");" << std::endl;
84     }
85    
86     void LC_POINT::get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> &param)
87     {
88    
89     // the first parameter indicates the acces code
90     param.ajouter(0);
91     // the second parameter indicates the order of the point which should be one for a point
92     param.ajouter(1);
93     param.ajouter(0);
94     // the number of the control point
95     param.ajouter(1);
96     param.ajouter(0);
97    
98     // the third parameter presente the number of the controls point wich correspond to the cordinate point
99     // note that the cordinate of the control points are given in homogeneous cordinates
100     // for a point, the weight it's �qual to one.
101    
102     param.ajouter(x);
103     param.ajouter(y);
104     param.ajouter(z);
105    
106     param.ajouter(1);
107    
108     indx_premier_ptctr=5;
109    
110     }
111    
112