Skip to content

Commit ab99a04

Browse files
committed
Fix retrieval of native element
1 parent 442ba56 commit ab99a04

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

src/ifcgeom/Iterator.h

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,7 @@ namespace IfcGeom {
602602
/// Gets the representation of the current geometrical entity.
603603
Element* get()
604604
{
605-
// TODO: Test settings and throw
606-
Element* ret = 0;
607-
608-
ret = *task_result_iterator_;
605+
auto ret = *task_result_iterator_;
609606

610607
// If we want to organize the element considering their hierarchy
611608
if (settings_.get(IteratorSettings::ELEMENT_HIERARCHY))
@@ -656,15 +653,10 @@ namespace IfcGeom {
656653
return ret;
657654
}
658655

659-
/// Gets the native (Open Cascade) representation of the current geometrical entity.
656+
/// Gets the native (Open Cascade or CGAL) representation of the current geometrical entity.
660657
BRepElement* get_native()
661658
{
662-
// TODO: Test settings and throw
663-
if (num_threads_ != 1) {
664-
return *native_task_result_iterator_;
665-
} else {
666-
return current_shape_model;
667-
}
659+
return *native_task_result_iterator_;
668660
}
669661

670662
const Element* get_object(int id) {

0 commit comments

Comments
 (0)