 |
MAGiC
V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
|
Aller à la documentation de ce fichier.
35 #include <BRepAlgoAPI_Common.hxx>
48 long unsigned int num,
51 long int id_mgcg_forme_sortie):
MG_CG_OP_BOOL_INTERSECTION(mgcg_modele,semantique,etat,num,mgcg_forme_entree_1,mgcg_forme_entree_2,id_mgcg_forme_sortie)
67 std::cout <<
"*** ERREUR : OCC_CG_OP_BOOL_INTERSECTION::construire_forme -> MG_CG_MODELE NULL ***" << std::endl;
78 bool importer_triangulation,
79 double epsilon_triangulation)
83 std::cout <<
"*** ERREUR : OCC_CG_OP_BOOL_INTERSECTION::construire_forme -> MG_CG_MODELE NULL ***" << std::endl;
86 BRepAlgoAPI_Common brep_common;
87 TopTools_ListOfShape list_of_shape_arguments;
89 brep_common.SetArguments(list_of_shape_arguments);
90 TopTools_ListOfShape list_of_shape_tools;
92 brep_common.SetTools(list_of_shape_tools);
94 if(!brep_common.IsDone())
96 std::cout <<
"*** ERREUR : OCC_CG_OP_BOOL_INTERSECTION::construire_forme -> ECHEC de BRepAlgoAPI_Common ***" << std::endl;
99 TopoDS_Shape shape_resultat = brep_common.Shape();
105 fusionner_entite_similaire,
107 importer_triangulation,
108 epsilon_triangulation);
109 if(forme_resultat==NULL)
return FAIL;
114 change_etat(MG_CG_OPERATEUR::ETAT_OPERATEUR::CONSTRUIT);
virtual MG_CG_FORME * get_mgcg_forme_entree_2(void)
virtual int change_mgcg_forme_sortie(MG_CG_FORME *mgcg_forme)
static MG_CG_FORME * creer_MG_CG_FORME(MG_CG_MODELE *mgcg_modele, TopoDS_Shape topods_shape, OCC_FONCTION *occ_fonction, MG_GEOMETRIE *mg_geometrie, bool fusionner_entite_similaire=false, double precision=1e-6, bool importer_triangulation=false, double epsilon_triangulation=1.)
virtual void change_etat(int etat_operateur)
MG_CG_MODELE * m_mgcg_modele
virtual double get_epsilon_triangulation(void)
static void get_listofTopoDS_Shape(std::map< MG_CG_FORME *, MG_CG_FORME * > *map_forme, TopTools_ListOfShape &listofshape)
virtual MG_CG_FORME * get_mgcg_forme_sortie(void)
virtual void mise_a_jout_lien_mg_element_mgcg_forme(MG_CG_FORME *mgcg_forme)
virtual MG_GEOMETRIE * get_mg_geometrie(void)
virtual double get_precision(void)
virtual int construire(void)
virtual ~OCC_CG_OP_BOOL_INTERSECTION()
virtual int ajouter_mgcg_forme(MG_CG_FORME *mgcg_forme)
OCC_CG_OP_BOOL_INTERSECTION(MG_CG_MODELE *mgcg_modele, int semantique, MG_CG_FORME *mgcg_forme_entree_1, MG_CG_FORME *mgcg_forme_entree_2)
virtual bool get_fusionner_entite_similaire(void)
virtual bool get_importer_triangulation(void)
virtual MG_CG_FORME * get_mgcg_forme_entree_1(void)
virtual void change_mgcg_operateur_parent(MG_CG_OPERATEUR *mgcg_operateur)
class OCC_FONCTION & get_occ_fonction(void)