ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/occ_fonction.h
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
Content type: text/plain
File size: 2303 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     //####// occ_fonction.h
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:55 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283 #ifdef BREP_OCC
23     #ifndef OCC_Fonction1H
24     #define OCC_Fonction1H
25    
26 francois 1158
27 francois 283 #include <BRep_Builder.hxx>
28     #include <BRepTools.hxx>
29     #include <TopoDS_Shape.hxx>
30     #include <TopoDS_Solid.hxx>
31     #include <TopoDS_Face.hxx>
32     #include <TopoDS_Edge.hxx>
33     #include <TopoDS_Vertex.hxx>
34     #include <TopTools_IndexedMapOfShape.hxx>
35     #include <TopTools_LocationSet.hxx>
36     #include "TopoDS_Iterator.hxx"
37     #include "STEPControl_Reader.hxx"
38    
39 couturad 906
40 francois 1158 class OCC_FONCTION
41 francois 283 {
42     public:
43 couturad 740 OCC_FONCTION(void);
44     virtual ~OCC_FONCTION(void);
45 francois 283
46 couturad 740 virtual void OuvrirFichier(char* file);
47     virtual void OuvrirFichierStep(char* file);
48     virtual void Sauvegarder(char* file);
49     virtual int GetID(const TopoDS_Shape &shape);
50     virtual const TopoDS_Shape& GetShape(const int id_shape);
51     virtual TopoDS_Shape& GetShapePrincipale(void);
52 couturad 814 virtual void marquer_sommet_pole(class MG_FACE* face,double precision=1.0e-06);
53 couturad 906 virtual std::string get_version(void);
54 francois 1025 virtual double get_precision(void);
55     virtual void change_precision(double val);
56    
57 couturad 906 protected:
58    
59 francois 283 TopoDS_Shape ashape;
60     BRep_Builder abuilder;
61     STEPControl_Reader reader;
62     TopTools_IndexedMapOfShape myShapes;
63     TopTools_LocationSet myLocations;
64 francois 1025 double precision;
65 francois 283
66     };
67     #endif
68     #endif