1 |
|
5 |
#include <vector>
|
2 |
|
|
#include <sstream>
|
3 |
|
|
#pragma hdrstop
|
4 |
|
|
|
5 |
|
|
#include "gestionversion.h"
|
6 |
|
|
#include "mg_point.h"
|
7 |
|
|
#include "lc_point.h"
|
8 |
|
|
#include "CAD4FE_MCVertex.h"
|
9 |
|
|
|
10 |
|
|
#include "CAD4FE_MCEdge.h"
|
11 |
|
|
#include "ot_algorithme_geometrique.h"
|
12 |
|
|
|
13 |
|
|
#ifdef __BORLANDC__
|
14 |
|
|
#pragma warn -8012
|
15 |
|
|
#endif
|
16 |
|
|
|
17 |
|
|
using namespace CAD4FE;
|
18 |
|
|
|
19 |
|
|
MCVertex::MCVertex(MG_SOMMET *__vertex)
|
20 |
|
|
: MG_SOMMET(__vertex->get_idoriginal(), __vertex->get_point()), _ref_vertex(__vertex)
|
21 |
|
|
{
|
22 |
|
|
time = 0;
|
23 |
|
|
copie_ccf(*__vertex);
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
MG_SOMMET * MCVertex::GetRefVertex()
|
27 |
|
|
{
|
28 |
|
|
return _ref_vertex;
|
29 |
|
|
}
|
30 |
|
|
|
31 |
|
|
void MCVertex::enregistrer(std::ostream& o)
|
32 |
|
|
{
|
33 |
|
|
int nb=get_nb_ccf();
|
34 |
|
|
o <<"%" << get_id() << "=CAD4FE_MCVERTEX("<< get_idoriginal() << ",$" << GetRefVertex()->get_id() << "," << nb;
|
35 |
|
|
if (nb!=0)
|
36 |
|
|
{
|
37 |
|
|
o << ",(";
|
38 |
|
|
for (int i=0;i<nb;i++)
|
39 |
|
|
{
|
40 |
|
|
char nom[3];
|
41 |
|
|
get_type_ccf(i,nom);
|
42 |
|
|
o << "(" << nom << "," << get_valeur_ccf(i) << ")";
|
43 |
|
|
if (i!=nb-1) o << "," ;
|
44 |
|
|
}
|
45 |
|
|
o << ")";
|
46 |
|
|
}
|
47 |
|
|
o << ");" << std::endl;
|
48 |
|
|
}
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|