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_LuxFeature.cpp
16151 views
1
--- src/Mod/Raytracing/App/LuxFeature.cpp.orig 2019-10-04 10:45:53 UTC
2
+++ src/Mod/Raytracing/App/LuxFeature.cpp
3
@@ -88,23 +88,23 @@ App::DocumentObjectExecReturn *LuxFeature::execute(voi
4
const App::Color& c = Color.getValue();
5
long t = Transparency.getValue();
6
if (t == 0) {
7
- result << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << endl
8
- << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << endl
9
- << " \"float sigma\" [0.000000000000000]" << endl
10
- << " \"string type\" [\"matte\"]" << endl << endl;
11
+ result << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << std::endl
12
+ << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << std::endl
13
+ << " \"float sigma\" [0.000000000000000]" << std::endl
14
+ << " \"string type\" [\"matte\"]" << std::endl << std::endl;
15
} else {
16
float trans = t/100.0f;
17
- result << "MakeNamedMaterial \"FreeCADMaterial_Base_" << Name << "\"" << endl
18
- << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << endl
19
- << " \"float sigma\" [0.000000000000000]" << endl
20
- << " \"string type\" [\"matte\"]" << endl << endl
21
- << "MakeNamedMaterial \"FreeCADMaterial_Null_" << Name << "\"" << endl
22
- << " \"string type\" [\"null\"]" << endl << endl
23
- << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << endl
24
- << " \"string namedmaterial1\" [\"FreeCADMaterial_Null_" << Name << "\"]" << endl
25
- << " \"string namedmaterial2\" [\"FreeCADMaterial_Base_" << Name << "\"]" << endl
26
- << " \"float amount\" [" << trans << "]" << endl
27
- << " \"string type\" [\"mix\"]" << endl << endl;
28
+ result << "MakeNamedMaterial \"FreeCADMaterial_Base_" << Name << "\"" << std::endl
29
+ << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << std::endl
30
+ << " \"float sigma\" [0.000000000000000]" << std::endl
31
+ << " \"string type\" [\"matte\"]" << std::endl << std::endl
32
+ << "MakeNamedMaterial \"FreeCADMaterial_Null_" << Name << "\"" << std::endl
33
+ << " \"string type\" [\"null\"]" << std::endl << std::endl
34
+ << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << std::endl
35
+ << " \"string namedmaterial1\" [\"FreeCADMaterial_Null_" << Name << "\"]" << std::endl
36
+ << " \"string namedmaterial2\" [\"FreeCADMaterial_Base_" << Name << "\"]" << std::endl
37
+ << " \"float amount\" [" << trans << "]" << std::endl
38
+ << " \"string type\" [\"mix\"]" << std::endl << std::endl;
39
}
40
41
LuxTools::writeShape(result,Name.c_str(),shape);
42
43