From 4f26622e037d42362ff31d0cf870b4a79ac018f0 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 31 Dec 2012 15:48:04 +0000 Subject: [PATCH] Do revert to unknown plane angle unit state after guessing when creating an IfcCompositeCurve --- src/ifcgeom/IfcGeomWires.cpp | 4 +++- src/ifcparse/IfcParse.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomWires.cpp b/src/ifcgeom/IfcGeomWires.cpp index d4302f6e98..7c9239e6d8 100644 --- a/src/ifcgeom/IfcGeomWires.cpp +++ b/src/ifcgeom/IfcGeomWires.cpp @@ -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; diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 5deca8dad4..399cc47db9 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -108,7 +108,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;