| 1 |
francois |
283 |
//------------------------------------------------------------ |
| 2 |
|
|
//------------------------------------------------------------ |
| 3 |
|
|
// MAGiC |
| 4 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
| 5 |
|
|
// D�partement de G�nie M�canique - UQTR |
| 6 |
|
|
//------------------------------------------------------------ |
| 7 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
| 8 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
| 9 |
|
|
// Trois Rivi�res |
| 10 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
| 11 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
| 12 |
|
|
//------------------------------------------------------------ |
| 13 |
|
|
//------------------------------------------------------------ |
| 14 |
|
|
// |
| 15 |
|
|
// OCC_fonction1.h |
| 16 |
|
|
// |
| 17 |
|
|
//------------------------------------------------------------ |
| 18 |
|
|
//------------------------------------------------------------ |
| 19 |
|
|
// COPYRIGHT 2000 |
| 20 |
|
|
// Version du 02/03/2006 � 11H22 |
| 21 |
|
|
//------------------------------------------------------------ |
| 22 |
|
|
//------------------------------------------------------------ |
| 23 |
|
|
#ifdef BREP_OCC |
| 24 |
|
|
#ifndef OCC_Fonction1H |
| 25 |
|
|
#define OCC_Fonction1H |
| 26 |
|
|
#ifdef WINDOWS_VERSION |
| 27 |
|
|
#ifdef BUILT_DLL_GEOMETRIE |
| 28 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport) |
| 29 |
|
|
#else |
| 30 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport) |
| 31 |
|
|
#endif |
| 32 |
|
|
#else |
| 33 |
|
|
#define DLLPORTGEOMETRIE |
| 34 |
|
|
#endif |
| 35 |
|
|
|
| 36 |
|
|
//#include <atl\atlmod.h> |
| 37 |
|
|
#include <BRep_Builder.hxx> |
| 38 |
|
|
#include <BRepTools.hxx> |
| 39 |
|
|
#include <TopoDS_Shape.hxx> |
| 40 |
|
|
#include <TopoDS_Solid.hxx> |
| 41 |
|
|
#include <TopoDS_Face.hxx> |
| 42 |
|
|
#include <TopoDS_Edge.hxx> |
| 43 |
|
|
#include <TopoDS_Vertex.hxx> |
| 44 |
|
|
#include <TopTools_IndexedMapOfShape.hxx> |
| 45 |
|
|
#include <TopTools_LocationSet.hxx> |
| 46 |
|
|
#include "TopoDS_Iterator.hxx" |
| 47 |
|
|
#include "STEPControl_Reader.hxx" |
| 48 |
|
|
|
| 49 |
couturad |
740 |
class DLLPORTGEOMETRIE OCC_FONCTION |
| 50 |
francois |
283 |
{ |
| 51 |
|
|
public: |
| 52 |
couturad |
740 |
OCC_FONCTION(void); |
| 53 |
|
|
virtual ~OCC_FONCTION(void); |
| 54 |
francois |
283 |
|
| 55 |
couturad |
740 |
virtual void OuvrirFichier(char* file); |
| 56 |
|
|
virtual void OuvrirFichierStep(char* file); |
| 57 |
|
|
virtual void Sauvegarder(char* file); |
| 58 |
|
|
virtual int GetID(const TopoDS_Shape &shape); |
| 59 |
|
|
virtual const TopoDS_Shape& GetShape(const int id_shape); |
| 60 |
|
|
virtual TopoDS_Shape& GetShapePrincipale(void); |
| 61 |
|
|
|
| 62 |
|
|
protected: |
| 63 |
|
|
|
| 64 |
francois |
283 |
TopoDS_Shape ashape; |
| 65 |
|
|
BRep_Builder abuilder; |
| 66 |
|
|
STEPControl_Reader reader; |
| 67 |
|
|
TopTools_IndexedMapOfShape myShapes; |
| 68 |
|
|
TopTools_LocationSet myLocations; |
| 69 |
|
|
|
| 70 |
|
|
}; |
| 71 |
|
|
#endif |
| 72 |
|
|
#endif |