mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
- 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:
@@ -639,3 +639,7 @@ int IfcGeomObjects::Progress() {
|
|||||||
std::string IfcGeomObjects::GetLog() {
|
std::string IfcGeomObjects::GetLog() {
|
||||||
return Logger::GetLog();
|
return Logger::GetLog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IfcParse::IfcFile* IfcGeomObjects::GetFile() {
|
||||||
|
return ifc_file;
|
||||||
|
}
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ namespace IfcGeomObjects {
|
|||||||
int Progress();
|
int Progress();
|
||||||
const IfcObject* GetObject(int id);
|
const IfcObject* GetObject(int id);
|
||||||
std::string GetLog();
|
std::string GetLog();
|
||||||
|
IfcParse::IfcFile* GetFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
#include "../ifcgeom/IfcGeom.h"
|
#include "../ifcgeom/IfcGeom.h"
|
||||||
|
|
||||||
bool IfcGeom::convert(const Ifc2x3::IfcCompositeCurve::ptr l, TopoDS_Wire& wire) {
|
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);
|
Logger::Message(Logger::LOG_WARNING,"Creating a composite curve without unit information:",l->entity);
|
||||||
|
|
||||||
// Temporarily pretend we do have unit information
|
// Temporarily pretend we do have unit information
|
||||||
@@ -107,7 +107,7 @@ bool IfcGeom::convert(const Ifc2x3::IfcCompositeCurve::ptr l, TopoDS_Wire& wire)
|
|||||||
} catch (...) {}
|
} catch (...) {}
|
||||||
|
|
||||||
// Restore to unknown unit state
|
// Restore to unknown unit state
|
||||||
IfcGeom::SetValue(GV_PLANEANGLE_UNIT,-1.0);
|
//IfcGeom::SetValue(GV_PLANEANGLE_UNIT,-1.0);
|
||||||
|
|
||||||
if ( succes_degrees && ! succes_radians ) {
|
if ( succes_degrees && ! succes_radians ) {
|
||||||
use_degrees = true;
|
use_degrees = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user