Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/cad/freecad/files/patch-src_Mod_Raytracing_App_RayFeature.cpp
16151 views
1
--- src/Mod/Raytracing/App/RayFeature.cpp.orig 2019-10-04 10:45:11 UTC
2
+++ src/Mod/Raytracing/App/RayFeature.cpp
3
@@ -81,19 +81,19 @@ App::DocumentObjectExecReturn *RayFeature::execute(voi
4
// This must not be done in PovTools::writeShape!
5
long t = Transparency.getValue();
6
const App::Color& c = Color.getValue();
7
- result << "// instance to render" << endl
8
- << "object {" << Name << endl
9
- << " texture {" << endl;
10
+ result << "// instance to render" << std::endl
11
+ << "object {" << Name << std::endl
12
+ << " texture {" << std::endl;
13
if (t == 0) {
14
- result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<">}" << endl;
15
+ result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<">}" << std::endl;
16
}
17
else {
18
float trans = t/100.0f;
19
- result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<"> transmit "<<trans<<"}" << endl;
20
+ result << " pigment {color rgb <"<<c.r<<","<<c.g<<","<<c.b<<"> transmit "<<trans<<"}" << std::endl;
21
}
22
- result << " finish {StdFinish } //definition on top of the project" << endl
23
- << " }" << endl
24
- << "}" << endl ;
25
+ result << " finish {StdFinish } //definition on top of the project" << std::endl
26
+ << " }" << std::endl
27
+ << "}" << std::endl ;
28
29
// Apply the resulting fragment
30
Result.setValue(result.str().c_str());
31
32