Path: blob/main/cad/freecad/files/patch-src_Mod_Raytracing_App_RayFeature.cpp
16151 views
--- src/Mod/Raytracing/App/RayFeature.cpp.orig 2019-10-04 10:45:11 UTC1+++ src/Mod/Raytracing/App/RayFeature.cpp2@@ -81,19 +81,19 @@ App::DocumentObjectExecReturn *RayFeature::execute(voi3// This must not be done in PovTools::writeShape!4long t = Transparency.getValue();5const App::Color& c = Color.getValue();6- result << "// instance to render" << endl7- << "object {" << Name << endl8- << " texture {" << endl;9+ result << "// instance to render" << std::endl10+ << "object {" << Name << std::endl11+ << " texture {" << std::endl;12if (t == 0) {13- result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<">}" << endl;14+ result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<">}" << std::endl;15}16else {17float trans = t/100.0f;18- result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<"> transmit "<<trans<<"}" << endl;19+ result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<"> transmit "<<trans<<"}" << std::endl;20}21- result << " finish {StdFinish } //definition on top of the project" << endl22- << " }" << endl23- << "}" << endl ;24+ result << " finish {StdFinish } //definition on top of the project" << std::endl25+ << " }" << std::endl26+ << "}" << std::endl ;2728// Apply the resulting fragment29Result.setValue(result.str().c_str());303132