@@ -115,18 +115,17 @@ namespace {
115115 TopExp::MapShapesAndAncestors (w, TopAbs_VERTEX, TopAbs_EDGE, map);
116116
117117 bool all_linear = true , single_circle = false , first = true ;
118- TopTools_ListOfShape edges;
119- if (map.FindFromKey (v, edges)) {
120- TopTools_ListIteratorOfListOfShape it (edges);
121- for (; it.More (); it.Next ()) {
122- const TopoDS_Edge& e = TopoDS::Edge (it.Value ());
123- double _, __;
124- Handle (Geom_Curve) crv = BRep_Tool::Curve (e, _, __);
125- const bool is_line = crv->DynamicType () == STANDARD_TYPE (Geom_Line);
126- const bool is_circle = crv->DynamicType () == STANDARD_TYPE (Geom_Circle);
127- all_linear = all_linear && all_linear;
128- single_circle = first && is_circle;
129- }
118+
119+ const TopTools_ListOfShape& edges = map.FindFromKey (v);
120+ TopTools_ListIteratorOfListOfShape it (edges);
121+ for (; it.More (); it.Next ()) {
122+ const TopoDS_Edge& e = TopoDS::Edge (it.Value ());
123+ double _, __;
124+ Handle (Geom_Curve) crv = BRep_Tool::Curve (e, _, __);
125+ const bool is_line = crv->DynamicType () == STANDARD_TYPE (Geom_Line);
126+ const bool is_circle = crv->DynamicType () == STANDARD_TYPE (Geom_Circle);
127+ all_linear = all_linear && all_linear;
128+ single_circle = first && is_circle;
130129 }
131130
132131 if (all_linear) {
0 commit comments