mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Properly clear log_stream
This commit is contained in:
@@ -132,8 +132,8 @@ bool IfcGeom::convert(const Ifc2x3::IfcPolygonalBoundedHalfSpace::ptr l, TopoDS_
|
|||||||
if ( ! IfcGeom::convert_wire(l->PolygonalBoundary(),wire) || ! wire.Closed() ) return false;
|
if ( ! IfcGeom::convert_wire(l->PolygonalBoundary(),wire) || ! wire.Closed() ) return false;
|
||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
convert(l->Position(),trsf);
|
convert(l->Position(),trsf);
|
||||||
TopoDS_Shape extrusion = BRepPrimAPI_MakePrism(BRepBuilderAPI_MakeFace(wire),gp_Vec(0,0,200.0));
|
TopoDS_Shape extrusion = BRepPrimAPI_MakePrism(BRepBuilderAPI_MakeFace(wire),gp_Vec(0,0,20000.0));
|
||||||
gp_Trsf down; down.SetTranslation(gp_Vec(0,0,-100.0));
|
gp_Trsf down; down.SetTranslation(gp_Vec(0,0,-10000.0));
|
||||||
extrusion.Move(down*trsf);
|
extrusion.Move(down*trsf);
|
||||||
shape = BRepAlgoAPI_Cut(extrusion,halfspace);
|
shape = BRepAlgoAPI_Cut(extrusion,halfspace);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -691,7 +691,7 @@ void Ifc::Dispose() {
|
|||||||
delete file;
|
delete file;
|
||||||
delete tokens;
|
delete tokens;
|
||||||
offsets.clear();
|
offsets.clear();
|
||||||
log_stream.clear();
|
log_stream.str("");
|
||||||
}
|
}
|
||||||
|
|
||||||
float UnitPrefixToValue( Ifc2x3::IfcSIPrefix::IfcSIPrefix v ) {
|
float UnitPrefixToValue( Ifc2x3::IfcSIPrefix::IfcSIPrefix v ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user