mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Do revert to unknown plane angle unit state after guessing when creating an IfcCompositeCurve
This commit is contained in:
@@ -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;
|
||||||
@@ -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");
|
Logger::Message(Logger::LOG_NOTICE,"Used degrees to create composite curve");
|
||||||
wire = wire_degrees;
|
wire = wire_degrees;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return use_radians || use_degrees;
|
||||||
}
|
}
|
||||||
Ifc2x3::IfcCompositeCurveSegment::list segments = l->Segments();
|
Ifc2x3::IfcCompositeCurveSegment::list segments = l->Segments();
|
||||||
BRepBuilderAPI_MakeWire w;
|
BRepBuilderAPI_MakeWire w;
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ void IfcSpfStream::Close() {
|
|||||||
// Reads a chunk of BUF_SIZE in memory and increments cursor if requested
|
// Reads a chunk of BUF_SIZE in memory and increments cursor if requested
|
||||||
//
|
//
|
||||||
void IfcSpfStream::ReadBuffer(bool inc) {
|
void IfcSpfStream::ReadBuffer(bool inc) {
|
||||||
std::cout << "Readbuffer" << std::endl;
|
|
||||||
#ifdef BUF_SIZE
|
#ifdef BUF_SIZE
|
||||||
if ( inc ) {
|
if ( inc ) {
|
||||||
offset += len;
|
offset += len;
|
||||||
|
|||||||
Reference in New Issue
Block a user