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