ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/CAD4FE/src/CAD4FE_mailleur0d.cpp
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months ago) by francois
File size: 1974 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
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     //####// CAD4FE_mailleur0d.cpp
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:56 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 foucault 27
23    
24     #include "gestionversion.h"
25     #include "CAD4FE_mailleur0d.h"
26    
27    
28    
29     CAD4FE::MAILLEUR0D::MAILLEUR0D(MG_MAILLAGE* mgmai,MG_GEOMETRIE *mggeo,MG_SOMMET* mgsom):MAILLEUR(),mg_maillage(mgmai),mg_geometrie(mggeo),mg_sommet(mgsom)
30     {
31     }
32    
33    
34    
35     CAD4FE::MAILLEUR0D::~MAILLEUR0D()
36     {
37     }
38    
39    
40    
41    
42     void CAD4FE::MAILLEUR0D::maille(void)
43     {
44     if (mg_sommet!=NULL) maille(mg_sommet);
45     else
46     {
47     int nb_sommet=mg_geometrie->get_nb_mg_sommet();
48     for (int i=0;i<nb_sommet;i++)
49     {
50     MG_SOMMET* mgsom=mg_geometrie->get_mg_sommet(i);
51     maille(mgsom);
52     }
53     }
54     }
55    
56    
57     void CAD4FE::MAILLEUR0D::maille(MG_SOMMET* mgsom)
58     {
59     double coo[3];
60     mgsom->get_point()->evaluer(coo);
61 francois 791 MG_NOEUD* mgnoeud=new MG_NOEUD(mgsom,coo[0],coo[1],coo[2],MAGIC::ORIGINE::MAILLEUR_AUTO);
62 foucault 27 mg_maillage->ajouter_mg_noeud(mgnoeud);
63     mgnoeud->get_lien_topologie()->get_lien_maillage()->ajouter(mgnoeud);
64     }
65    
66    
67    
68    
69    
70    
71