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_AppRaytracingPy.cpp
16151 views
1
--- src/Mod/Raytracing/App/AppRaytracingPy.cpp.orig 2019-10-04 10:44:17 UTC
2
+++ src/Mod/Raytracing/App/AppRaytracingPy.cpp
3
@@ -105,13 +105,13 @@ class Module : public Py::ExtensionModule<Module> (pri
4
5
PovTools::writeShape(out,PartName,aShape,(float)0.1);
6
// This must not be done in PovTools::writeShape!
7
- out << "// instance to render" << endl
8
- << "object {" << PartName << endl
9
- << " texture {" << endl
10
- << " pigment {color rgb <"<<r<<","<<g<<","<<b<<">}" << endl
11
- << " finish {StdFinish } //definition on top of the project" << endl
12
- << " }" << endl
13
- << "}" << endl ;
14
+ out << "// instance to render" << std::endl
15
+ << "object {" << PartName << std::endl
16
+ << " texture {" << std::endl
17
+ << " pigment {color rgb <"<<r<<","<<g<<","<<b<<">}" << std::endl
18
+ << " finish {StdFinish } //definition on top of the project" << std::endl
19
+ << " }" << std::endl
20
+ << "}" << std::endl ;
21
return Py::String(out.str());
22
}
23
Py::Object getPartAsLux(const Py::Tuple& args)
24
@@ -128,10 +128,10 @@ class Module : public Py::ExtensionModule<Module> (pri
25
26
// write a material entry
27
// This must not be done in PovTools::writeShape!
28
- out << "MakeNamedMaterial \"FreeCADMaterial_" << PartName << "\"" << endl;
29
- out << " \"color Kd\" [" << r << " " << g << " " << b << "]" << endl;
30
- out << " \"float sigma\" [0.000000000000000]" << endl;
31
- out << " \"string type\" [\"matte\"]" << endl << endl;
32
+ out << "MakeNamedMaterial \"FreeCADMaterial_" << PartName << "\"" << std::endl;
33
+ out << " \"color Kd\" [" << r << " " << g << " " << b << "]" << std::endl;
34
+ out << " \"float sigma\" [0.000000000000000]" << std::endl;
35
+ out << " \"string type\" [\"matte\"]" << std::endl << std::endl;
36
37
LuxTools::writeShape(out,PartName,aShape,(float)0.1);
38
return Py::String(out.str());
39
40