@@ -217,7 +217,7 @@ class Entity : public Command {
217217 std::vector<int32_t > indices;
218218 const std::vector<int >& faces = geom->geometry ().faces ();
219219 indices.reserve (faces.size ());
220- for (std::vector<int >::const_iterator it = indices .begin (); it != indices .end (); ++it) {
220+ for (std::vector<int >::const_iterator it = faces .begin (); it != faces .end (); ++it) {
221221 indices.push_back (*it);
222222 }
223223 swrite (s, std::string ((char *) indices.data (), indices.size () * sizeof (int32_t )));
@@ -269,7 +269,7 @@ class Entity : public Command {
269269 swrite (s, std::string ((char *) material_indices.data (), material_indices.size () * sizeof (int32_t ))); }
270270 }
271271public:
272- Entity (const IfcGeom::TriangulationElement<float >* geom) : Command(ENTITY), geom(geom), append_line_data(true ) {};
272+ Entity (const IfcGeom::TriangulationElement<float >* geom) : Command(ENTITY), geom(geom), append_line_data(false ) {};
273273};
274274
275275class Next : public Command {
@@ -359,7 +359,7 @@ int main () {
359359 settings.set (IfcGeom::IteratorSettings::USE_WORLD_COORDS, false );
360360 settings.set (IfcGeom::IteratorSettings::WELD_VERTICES, false );
361361 settings.set (IfcGeom::IteratorSettings::CONVERT_BACK_UNITS, true );
362- settings.set (IfcGeom::IteratorSettings::INCLUDE_CURVES, true );
362+ // settings.set(IfcGeom::IteratorSettings::INCLUDE_CURVES, true);
363363
364364 std::vector< std::pair<uint32_t , uint32_t > >::const_iterator it = setting_pairs.begin ();
365365 for (; it != setting_pairs.end (); ++it) {
0 commit comments