This document is not UTF8. It was detected as ISO-8859-1 (Latin 1) and converted to UTF8 for display.
#include "LoadDataAtBEMFormat.h"
#include <string>
string DEB_KW0_L = "<";
string DEB_KW1_L = "\t<";
string DEB_KW2_L = "\t\t<";
string DEB_KW3_L = "\t\t\t<";
string KW_R = ">\n";
string FIN_KW0_L = "</";
string FIN_KW1_L = "\t</";
string FIN_KW2_L = "\t\t</";
string FIN_KW3_L = "\t\t\t</";
LoadDataAtBEMFormat::LoadDataAtBEMFormat()
{
}
LoadDataAtBEMFormat::~LoadDataAtBEMFormat()
{
}
//Convertit les structures attendues par Lesosai en chaine de caractères
int LoadDataAtBEMFormat::GetLesosaiEntitiesDefinition(string *&str_EntDef)
{
int Res = 0;
str_EntDef = _str_EntitiesDefinitions;
return Res;
}
int LoadDataAtBEMFormat::GetLesosaiEntitiesNumber()
{
int Res = 0;
return Res;
}
int LoadDataAtBEMFormat::GetLesosaiEntitiesAttributesSize()
{
int Res = 0;
return Res;
}
//Transforme la structure générique ifc_Tree en des structures attendues par Lesosai
int LoadDataAtBEMFormat::LoadLesosaiFormat(ifc_Tree* CurrentIfcTree)
{
int Res = 0;
//Pour Post-traiter le tree => mettre l'arbre en rateau (sans duplication des entités)
ifc_TreePostTreatment *cl_PostTreatmt = new ifc_TreePostTreatment(CurrentIfcTree);
//Mise à plat de l'arbre (en rateau)
Map_Basified_Tree *map_BasifTree=nullptr;
if(cl_PostTreatmt)
cl_PostTreatmt->BasifyTree(map_BasifTree);
//Certains contours sont définis avec en dernier point le 1er points (loop)
//Pour la suite des traitements, cela nous gêne (calcul du centre de gravité=CentroidsComputation, détection des points les plus proche=RelimitSideBySideSurfaces)
//Retrait dans les contours (st_PointsDesContours) du derniers point lorsqu'il est égal au 1er (+ consigne bool bo_IsItLoop=true)
if (cl_PostTreatmt)
cl_PostTreatmt->RemoveLastPointOfLoopContours();
//Calcul des surfaces IfcConnectionSurfaceGeometry
// => à faire avant changement de coord car algo fonctionne en 2D => si la 3ème coord est la même pour toute!