Skip to content

Commit 2ce89c8

Browse files
committed
Properly read the CONVERT_BACK_UNITS setting for serialized elements
1 parent 0552c33 commit 2ce89c8

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/ifcgeom/IfcGeomRepresentation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ IfcGeom::Representation::Serialization::Serialization(const BRep& brep)
3535
TopoDS_Compound compound;
3636
BRep_Builder builder;
3737
builder.MakeCompound(compound);
38-
for ( IfcGeom::IfcRepresentationShapeItems::const_iterator it = brep.begin(); it != brep.end(); ++ it ) {
38+
for (IfcGeom::IfcRepresentationShapeItems::const_iterator it = brep.begin(); it != brep.end(); ++ it) {
3939
const TopoDS_Shape& s = it->Shape();
4040
gp_GTrsf trsf = it->Placement();
41-
if (convert_back_units) {
41+
if (settings().convert_back_units()) {
4242
gp_Trsf scale;
4343
scale.SetScaleFactor(1.0 / settings().unit_magnitude());
4444
trsf.PreMultiply(scale);

src/ifcgeom/IfcGeomRepresentation.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ namespace IfcGeom {
6969
class Serialization : public Representation {
7070
private:
7171
int _id;
72-
bool convert_back_units;
7372
std::string _brep_data;
7473
public:
7574
int id() const { return _id; }

0 commit comments

Comments
 (0)