diff options
author | Marius Kintel <marius@kintel.net> | 2011-04-10 23:47:06 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-04-10 23:47:06 (GMT) |
commit | 06cc8b1d585e03d47dfb20014c5281c43d806f1b (patch) | |
tree | 5ad748d5d638daeb4bc5b2b43991958d2ca445d5 /src/cgaladv.cc | |
parent | 6cce430eed9910d9cf84e220ed96479dd7167d4f (diff) |
indentation
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r-- | src/cgaladv.cc | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc index 6301cd3..0dc70ad 100644 --- a/src/cgaladv.cc +++ b/src/cgaladv.cc @@ -183,25 +183,24 @@ CGAL_Nef_polyhedron CgaladvNode::render_cgal_nef_polyhedron() const if (type == HULL) { - - std::list<CGAL_Nef_polyhedron2> polys; - bool all2d = true; - foreach(AbstractNode * v, children) { - if (v->modinst->tag_background) + std::list<CGAL_Nef_polyhedron2> polys; + bool all2d = true; + foreach(AbstractNode * v, children) { + if (v->modinst->tag_background) continue; - N = v->render_cgal_nef_polyhedron(); - if (N.dim == 3) { + N = v->render_cgal_nef_polyhedron(); + if (N.dim == 3) { //polys.push_back(tmp.p3); all2d=false; - } - if (N.dim == 2) { + } + if (N.dim == 2) { polys.push_back(N.p2); + } + v->progress_report(); } - v->progress_report(); - } - if(all2d) - N.p2 = convexhull2(polys); + if (all2d) + N.p2 = convexhull2(polys); } cgal_nef_cache.insert(cache_id, new cgal_nef_cache_entry(N), N.weight()); |