File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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; }
You can’t perform that action at this time.
0 commit comments