You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assign a specific [R, G, B] color to a Radia object, as in
rad.ObjDrwAtr(mag, [1.0, 0.5, 0.0])
Then render the object in the Radia Viewer. Fractional values appear
to be truncated to zero. The above example renders as pure red, rather
than orange.
(This might actually be an issue for Radia itself, but I recording here for now.)
The text was updated successfully, but these errors were encountered:
I looked at the color array we get back from ObjDrwVTK and it is incorrect. The float values are cast to long (there's even an inquisitive comment about it in radpy.cpp.ParseGeomDataDrwVTK()):
for(Py_ssize_t i = PyList_Size(colors); --i >= 0;)
{
PyObject *o = PyLong_FromDouble(arColP[i]); //why colors are float at input if they are casted to long here?
if(o == NULL || PyList_SetItem(colors, i, o) < 0) throw strEr_MAF;
}
Assign a specific
[R, G, B]
color to a Radia object, as inThen render the object in the Radia Viewer. Fractional values appear
to be truncated to zero. The above example renders as pure red, rather
than orange.
(This might actually be an issue for Radia itself, but I recording here for now.)
The text was updated successfully, but these errors were encountered: