MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
mg_primitive.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
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 //####// mg_primitive.h
15 //####//
16 //####//------------------------------------------------------------
17 //####//------------------------------------------------------------
18 //####// COPYRIGHT 2000-2024
19 //####// jeu 13 jun 2024 11:58:54 EDT
20 //####//------------------------------------------------------------
21 //####//------------------------------------------------------------
22 #ifdef CSG_OCC
23 
24 
25 #ifndef __MGPRIMITIVE_
26 #define __MGPRIMITIVE_
27 
28 
29 
31 
32 #include <TopoDS_Shape.hxx>
33 #include <BRepPrimAPI_MakeBox.hxx>
34 #include <gp_Pnt.hxx>
35 
36 class MG_PRIMITIVE : public MG_CONSTRUCTION_GEOMETRIQUE
37 {
38 public:
39  MG_PRIMITIVE();
40  MG_PRIMITIVE(unsigned long num);
41  MG_PRIMITIVE(MG_PRIMITIVE& mdd);
42  virtual ~MG_PRIMITIVE();
43 
44  virtual void enregistrer(std::ostream& o,double version)=0;
45  virtual void construit(void)=0;
46  virtual int get_type_mg_construction_geometrique(void);
47 
48 
49  TopoDS_Shape get_forme();
50  void change_forme(TopoDS_Shape m_forme);
51  double get_volume(double eps=1.0e-06);
52 
53 private:
54 
55 protected:
56  TopoDS_Shape forme;
57 
58 
59 
60 };
61 
62 
63 
64 #endif
65 
66 #endif
67 
68