Do revert to unknown plane angle unit state after guessing when creating an IfcCompositeCurve

This commit is contained in:
Thomas Krijnen
2012-12-31 15:48:04 +00:00
parent 0714fbdab5
commit 55e3d2959f
2 changed files with 4 additions and 3 deletions
+3 -1
View File
@@ -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;
@@ -135,6 +135,8 @@ bool IfcGeom::convert(const Ifc2x3::IfcCompositeCurve::ptr l, TopoDS_Wire& wire)
Logger::Message(Logger::LOG_NOTICE,"Used degrees to create composite curve");
wire = wire_degrees;
}
return use_radians || use_degrees;
}
Ifc2x3::IfcCompositeCurveSegment::list segments = l->Segments();
BRepBuilderAPI_MakeWire w;
+1 -2
View File
@@ -106,7 +106,6 @@ void IfcSpfStream::Close() {
// Reads a chunk of BUF_SIZE in memory and increments cursor if requested
//
void IfcSpfStream::ReadBuffer(bool inc) {
std::cout << "Readbuffer" << std::endl;
#ifdef BUF_SIZE
if ( inc ) {
offset += len;
@@ -678,7 +677,7 @@ bool IfcFile::Init(IfcParse::IfcSpfStream* f) {
// Update the status after every 1000 instances parsed
if ( !((++x)%1000) ) {
std::stringstream ss; ss << "\r#" << currentId;
Logger::Status(ss.str());
Logger::Status(ss.str(), false);
}
if ( entity->is(Ifc2x3::Type::IfcRoot) ) {
Ifc2x3::IfcRoot::ptr ifc_root = (Ifc2x3::IfcRoot::ptr) entity;