- Added getter to IfcFile object

- fixed wrong operator to judge plan angle unit is not exist.
- guessed plane angle unit stay in a file processing.
This commit is contained in:
Jang Myeongho
2012-08-21 07:06:59 +00:00
parent 0ef6577407
commit da616ffd64
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -639,3 +639,7 @@ int IfcGeomObjects::Progress() {
std::string IfcGeomObjects::GetLog() {
return Logger::GetLog();
}
IfcParse::IfcFile* IfcGeomObjects::GetFile() {
return ifc_file;
}
+1 -1
View File
@@ -158,7 +158,7 @@ namespace IfcGeomObjects {
int Progress();
const IfcObject* GetObject(int id);
std::string GetLog();
IfcParse::IfcFile* GetFile();
}
#endif
+2 -2
View File
@@ -83,7 +83,7 @@
#include "../ifcgeom/IfcGeom.h"
bool IfcGeom::convert(const Ifc2x3::IfcCompositeCurve::ptr l, TopoDS_Wire& wire) {
if ( IfcGeom::GetValue(GV_PLANEANGLE_UNIT)>0 ) {
if ( IfcGeom::GetValue(GV_PLANEANGLE_UNIT)<0 ) {
Logger::Message(Logger::LOG_WARNING,"Creating a composite curve without unit information:",l->entity);
// Temporarily pretend we do have unit information
@@ -107,7 +107,7 @@ bool IfcGeom::convert(const Ifc2x3::IfcCompositeCurve::ptr l, TopoDS_Wire& wire)
} catch (...) {}
// Restore to unknown unit state
IfcGeom::SetValue(GV_PLANEANGLE_UNIT,-1.0);
//IfcGeom::SetValue(GV_PLANEANGLE_UNIT,-1.0);
if ( succes_degrees && ! succes_radians ) {
use_degrees = true;