Properly read the CONVERT_BACK_UNITS setting for serialized elements

This commit is contained in:
Thomas Krijnen
2015-02-20 18:06:52 +00:00
parent 0552c336df
commit 2ce89c8b22
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -35,10 +35,10 @@ IfcGeom::Representation::Serialization::Serialization(const BRep& brep)
TopoDS_Compound compound;
BRep_Builder builder;
builder.MakeCompound(compound);
for ( IfcGeom::IfcRepresentationShapeItems::const_iterator it = brep.begin(); it != brep.end(); ++ it ) {
for (IfcGeom::IfcRepresentationShapeItems::const_iterator it = brep.begin(); it != brep.end(); ++ it) {
const TopoDS_Shape& s = it->Shape();
gp_GTrsf trsf = it->Placement();
if (convert_back_units) {
if (settings().convert_back_units()) {
gp_Trsf scale;
scale.SetScaleFactor(1.0 / settings().unit_magnitude());
trsf.PreMultiply(scale);
-1
View File
@@ -69,7 +69,6 @@ namespace IfcGeom {
class Serialization : public Representation {
private:
int _id;
bool convert_back_units;
std::string _brep_data;
public:
int id() const { return _id; }