ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/CAD4FE/src/CAD4FE_VertexCriteria.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (14 years, 10 months ago) by francois
Content type: text/plain
File size: 1420 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# User Rev Content
1 foucault 27 //---------------------------------------------------------------------------
2    
3     #ifndef CAD4FE_VertexCriteriaH
4     #define CAD4FE_VertexCriteriaH
5     //---------------------------------------------------------------------------
6    
7     #include "CAD4FE_MCT_Platform.h"
8    
9     #include <vector>
10     #include <ot_mathematique.h>
11    
12     namespace CAD4FE {
13    
14     class MCVertex;
15     class CovertexCriteria;
16     class MCBody;
17     class MCAA;
18    
19     class CAD4FE_MCT_ITEM VertexCriteria {
20     public:
21     VertexCriteria (MCVertex * __mcVertex, MCAA * __mcaa);
22     ~VertexCriteria ();
23     std::string InventorText();
24     double GetDeviationAngle();
25     double GetEdgeLength();
26     MCVertex * GetVertex();
27     void Update();
28     double UpdateShapeCriteria();
29    
30     double GetScore();
31     double GetDeviationAngleScore();
32     double GetEdgeLengthScore();
33    
34     void SetRelativeSag(double);
35     void SetLimitAngle(double);
36     void SetMaxOverdensity(double);
37     private:
38     std::vector <CovertexCriteria *> _covertexProps;
39     OT_VECTEUR_3D _point;
40     MCVertex * _mcVertex;
41    
42     // meshing parameters
43     double _meshSize;
44    
45     // vertex criteria
46     double _edgeLen, _deviationAngle, _score;
47    
48     MCAA * _mcaa;
49     };
50    
51     }
52    
53     #endif