Path: blob/main/cad/freecad/files/patch-src_Mod_Raytracing_App_AppRaytracingPy.cpp
16151 views
--- src/Mod/Raytracing/App/AppRaytracingPy.cpp.orig 2019-10-04 10:44:17 UTC1+++ src/Mod/Raytracing/App/AppRaytracingPy.cpp2@@ -105,13 +105,13 @@ class Module : public Py::ExtensionModule<Module> (pri34PovTools::writeShape(out,PartName,aShape,(float)0.1);5// This must not be done in PovTools::writeShape!6- out << "// instance to render" << endl7- << "object {" << PartName << endl8- << " texture {" << endl9- << " pigment {color rgb <"<<r<<","<<g<<","<<b<<">}" << endl10- << " finish {StdFinish } //definition on top of the project" << endl11- << " }" << endl12- << "}" << endl ;13+ out << "// instance to render" << std::endl14+ << "object {" << PartName << std::endl15+ << " texture {" << std::endl16+ << " pigment {color rgb <"<<r<<","<<g<<","<<b<<">}" << std::endl17+ << " finish {StdFinish } //definition on top of the project" << std::endl18+ << " }" << std::endl19+ << "}" << std::endl ;20return Py::String(out.str());21}22Py::Object getPartAsLux(const Py::Tuple& args)23@@ -128,10 +128,10 @@ class Module : public Py::ExtensionModule<Module> (pri2425// write a material entry26// This must not be done in PovTools::writeShape!27- out << "MakeNamedMaterial \"FreeCADMaterial_" << PartName << "\"" << endl;28- out << " \"color Kd\" [" << r << " " << g << " " << b << "]" << endl;29- out << " \"float sigma\" [0.000000000000000]" << endl;30- out << " \"string type\" [\"matte\"]" << endl << endl;31+ out << "MakeNamedMaterial \"FreeCADMaterial_" << PartName << "\"" << std::endl;32+ out << " \"color Kd\" [" << r << " " << g << " " << b << "]" << std::endl;33+ out << " \"float sigma\" [0.000000000000000]" << std::endl;34+ out << " \"string type\" [\"matte\"]" << std::endl << std::endl;3536LuxTools::writeShape(out,PartName,aShape,(float)0.1);37return Py::String(out.str());383940