MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / setDiffuseColor

Method setDiffuseColor

src/App/MaterialPyImp.cpp:227–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void MaterialPy::setDiffuseColor(Py::Object arg)
228{
229 try {
230 getMaterialPtr()->diffuseColor = toColor(*arg);
231 }
232 catch (const Base::Exception& e) {
233 e.setPyException();
234 throw Py::Exception();
235 }
236}
237
238Py::Object MaterialPy::getEmissiveColor() const
239{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.70
setPyExceptionMethod · 0.45

Tested by

no test coverage detected