mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix some mapping errors
This commit is contained in:
@@ -44,10 +44,7 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcIndexedPolyCurve* inst) {
|
||||
|
||||
int max_index = (int) points.size();
|
||||
|
||||
taxonomy::loop* loop;
|
||||
|
||||
// ignored, just for capturing the curve parameters on the null check
|
||||
double u, v;
|
||||
auto loop = new taxonomy::loop;
|
||||
|
||||
if(inst->Segments()) {
|
||||
aggregate_of_instance::ptr segments = *inst->Segments();
|
||||
|
||||
@@ -61,6 +61,10 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcPolygonalFaceSet* inst) {
|
||||
}
|
||||
previous = current;
|
||||
}
|
||||
if (!indices.empty()) {
|
||||
const taxonomy::point3& current = points[indices.front() - 1];
|
||||
loop->children.push_back(new taxonomy::edge(previous, current));
|
||||
}
|
||||
}
|
||||
|
||||
if (f->as<IfcSchema::IfcIndexedPolygonalFaceWithVoids>()) {
|
||||
@@ -82,6 +86,10 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcPolygonalFaceSet* inst) {
|
||||
}
|
||||
previous = current;
|
||||
}
|
||||
if (!indices.empty()) {
|
||||
const taxonomy::point3& current = points[indices.front() - 1];
|
||||
loop->children.push_back(new taxonomy::edge(previous, current));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,8 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcTriangulatedFaceSet* inst)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return shell;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user