Thanks Zhiyi for the bug report.
indeed the documentation requires "comma" to separate the vector but
it worked also with spaces. I've modified the routine to write it with
commas.
The material naming is case sensitive, so it should not be translated
to upper case.
The povray is a very old converter, and its been several years I didn't
work on it. Indeed it was taking as material list the basic materials
ignoring the predefined compound materials. I will add it.
In any case you can always add the materials in the .inc file
This file is generated if it doesn't exist with some random material
properties and it is not touched again by flair, so it can be
freely modified by the user.
Best
Vasilis
________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Zhiyi Liu [zhiyil_at_triumf.ca]
Sent: Wednesday, January 31, 2018 18:13
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: bugs to export povray files
Hi,
I am testing the flair's function to export povray files. So far there may be some bugs there in Povray.py. I am using flair v2.3-0 (April 2017) and Povray 3.7.0.
* In the function of vec, ',' (comma) should be the delimiter instead of space between 3 components of a vector.
* In line 462, should convert material name to upper:
fout.write("\ttexture {mat_%s}\n"%(name(material.sdum())).upper());
* mat_POLYETHY and mat_WATER should be declared in the *.inc file. But I am not sure where those should be implemented.
I am still very keen in using the function of exporting to openscad, which is a very helpful function whenever viewing 3D FLUKA models using other software. The existing problem for the function (
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/10792.html) is that exporting didn't consider properly 'transformation' of geometry bodies.
Thanks,
Zhiyi.
__________________________________________________________________________
You can manage unsubscription from this mailing list at
https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Feb 01 2018 - 11:50:32 CET