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_VertexCriteria.h |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:56 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
foucault |
27 |
|
23 |
|
|
#ifndef CAD4FE_VertexCriteriaH
|
24 |
|
|
#define CAD4FE_VertexCriteriaH
|
25 |
|
|
|
26 |
|
|
#include "CAD4FE_MCT_Platform.h"
|
27 |
|
|
|
28 |
|
|
#include <vector>
|
29 |
|
|
#include <ot_mathematique.h>
|
30 |
|
|
|
31 |
|
|
namespace CAD4FE {
|
32 |
|
|
|
33 |
|
|
class MCVertex;
|
34 |
|
|
class CovertexCriteria;
|
35 |
|
|
class MCBody;
|
36 |
|
|
class MCAA;
|
37 |
|
|
|
38 |
francois |
1158 |
class VertexCriteria {
|
39 |
foucault |
27 |
public:
|
40 |
|
|
VertexCriteria (MCVertex * __mcVertex, MCAA * __mcaa);
|
41 |
|
|
~VertexCriteria ();
|
42 |
|
|
std::string InventorText();
|
43 |
|
|
double GetDeviationAngle();
|
44 |
|
|
double GetEdgeLength();
|
45 |
|
|
MCVertex * GetVertex();
|
46 |
|
|
void Update();
|
47 |
|
|
double UpdateShapeCriteria();
|
48 |
|
|
|
49 |
|
|
double GetScore();
|
50 |
|
|
double GetDeviationAngleScore();
|
51 |
|
|
double GetEdgeLengthScore();
|
52 |
|
|
|
53 |
|
|
void SetRelativeSag(double);
|
54 |
|
|
void SetLimitAngle(double);
|
55 |
|
|
void SetMaxOverdensity(double);
|
56 |
|
|
private:
|
57 |
|
|
std::vector <CovertexCriteria *> _covertexProps;
|
58 |
|
|
OT_VECTEUR_3D _point;
|
59 |
|
|
MCVertex * _mcVertex;
|
60 |
|
|
|
61 |
|
|
// meshing parameters
|
62 |
|
|
double _meshSize;
|
63 |
|
|
|
64 |
|
|
// vertex criteria
|
65 |
|
|
double _edgeLen, _deviationAngle, _score;
|
66 |
|
|
|
67 |
|
|
MCAA * _mcaa;
|
68 |
|
|
};
|
69 |
|
|
|
70 |
|
|
}
|
71 |
|
|
|
72 |
|
|
#endif
|