diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-25 02:11:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-25 02:11:12 (GMT) |
commit | eff1f7f8c91cee34c584a89c5d09e401c609f93e (patch) | |
tree | 543ae3bd3587dd3a97fbaa660ad9aaceb5a3823f /src/PolySetCGALEvaluator.cc | |
parent | 16c05eb533f94799a80f5b98c01e952e1cfe337b (diff) |
Ported printutils away from Qt
Diffstat (limited to 'src/PolySetCGALEvaluator.cc')
-rw-r--r-- | src/PolySetCGALEvaluator.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/PolySetCGALEvaluator.cc b/src/PolySetCGALEvaluator.cc index 3cd6005..c3f4774 100644 --- a/src/PolySetCGALEvaluator.cc +++ b/src/PolySetCGALEvaluator.cc @@ -85,7 +85,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node) // N.p3 *= CGAL_Nef_polyhedron3(CGAL_Plane(0, 0, 1, 0), CGAL_Nef_polyhedron3::INCLUDED); sum *= Ncube; if (!sum.p3->is_simple()) { - PRINTF("WARNING: Body of projection(cut = true) isn't valid 2-manifold! Modify your design.."); + PRINT("WARNING: Body of projection(cut = true) isn't valid 2-manifold! Modify your design.."); goto cant_project_non_simple_polyhedron; } @@ -116,7 +116,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const ProjectionNode &node) else { if (!sum.p3->is_simple()) { - PRINTF("WARNING: Body of projection(cut = false) isn't valid 2-manifold! Modify your design.."); + PRINT("WARNING: Body of projection(cut = false) isn't valid 2-manifold! Modify your design.."); goto cant_project_non_simple_polyhedron; } @@ -302,15 +302,15 @@ PolySet *PolySetCGALEvaluator::extrudeDxfData(const LinearExtrudeNode &node, Dxf if (dxf.paths[i].is_closed) continue; if (first_open_path) { - PRINTF("WARNING: Open paths in dxf_linear_extrude(file = \"%s\", layer = \"%s\"):", - node.filename.c_str(), node.layername.c_str()); + PRINTB("WARNING: Open paths in dxf_linear_extrude(file = \"%s\", layer = \"%s\"):", + node.filename % node.layername); first_open_path = false; } - PRINTF(" %9.5f %10.5f ... %10.5f %10.5f", - dxf.points[dxf.paths[i].indices.front()][0] / node.scale + node.origin_x, - dxf.points[dxf.paths[i].indices.front()][1] / node.scale + node.origin_y, - dxf.points[dxf.paths[i].indices.back()][0] / node.scale + node.origin_x, - dxf.points[dxf.paths[i].indices.back()][1] / node.scale + node.origin_y); + PRINTB(" %9.5f %10.5f ... %10.5f %10.5f", + (dxf.points[dxf.paths[i].indices.front()][0] / node.scale + node.origin_x) % + (dxf.points[dxf.paths[i].indices.front()][1] / node.scale + node.origin_y) % + (dxf.points[dxf.paths[i].indices.back()][0] / node.scale + node.origin_x) % + (dxf.points[dxf.paths[i].indices.back()][1] / node.scale + node.origin_y)); } @@ -397,7 +397,7 @@ PolySet *PolySetCGALEvaluator::evaluatePolySet(const RenderNode &node) PolySet *ps = NULL; if (!N.empty()) { if (N.dim == 3 && !N.p3->is_simple()) { - PRINTF("WARNING: Body of render() isn't valid 2-manifold!"); + PRINT("WARNING: Body of render() isn't valid 2-manifold!"); } else { ps = N.convertToPolyset(); |