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