hcu5555 / tonatiuh

Automatically exported from code.google.com/p/tonatiuh
0 stars 0 forks source link

tonatiuh.ExportPhotonMap does not seem to work #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out revision 2570 (I assume this is the release 1.2.5 revision)
2. Build
3. From within Eclipse run the "release" configuration
4. Load the HeliostatsCircularField.tnh file
5. Ray Trace -> Run
6. Automation -> Script Editor
7. Load script ExportPhotonMap_v01.tnhs
8. Run loaded script

What is the expected output? What do you see instead?
Expect file "PhotonMap.dat" be created in /tmp
Instead observe no file is created.

What version of the product are you using? On what operating system?
Tonatiuh revision 2570
Suse Linux Enterprise Server 11 SP 1 and SLE11-SDK-SP1

Please provide any additional information below.
The function tonatiuh.ExportAllPhotonMap creates the file, but selected node is 
ignored

Original issue reported on code.google.com by schnfx...@googlemail.com on 15 Mar 2012 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago
Same behaviour for current development revision 2620

Original comment by schnfx...@googlemail.com on 15 Mar 2012 at 1:10

GoogleCodeExporter commented 9 years ago
Hello,

The function is working properly. I have dowloaded the file 
ExportPhotonMap.tnhs and I have followed your steps. Firstly, the function 
seems to be doing nothing but then, I realised that you have two mistakes on 
your file which are:
 1) The node path is not correct because you have written TShapeKit instead of TShapeKit1 which is the correct name of the node.

 2) The route of the destination folder is wrong too. You have to delete the first slash you are adding before tmp. Due to the fact that you are using partial directories, you must check what is the default directory Tonatiuh is using. In my case, when I run Tonatiuh trough Eclipse, I have the following path:: C:/sde/workspace/TonatiuhProject/ 
So, in my case, I have to create a folder called tmp in this directory.
My destination folder will be C:/sde/workspace/TonatiuhProject/tmp
To avoid that problem, It's better you write the full destination path. 
Something like this: C:/sde/workspace/TonatiuhProject/tmp/PhotonMap.dat

Now, I can run the function and the file is saved where I wanted. The attached 
function works fine. You only have to change my destination folder path with 
yours.

Original comment by sergio.g...@gmail.com on 16 Mar 2012 at 10:07

Attachments:

GoogleCodeExporter commented 9 years ago
Sergio,
thanks for your response. I apologize for the mistake with "TShapeKit" instead 
of "TShapeKit1". With regard to the path, since I am on Linux, 
"/tmp/PhotonMap.dat" is a valid absolute path. I tried the ExportPhotonMap 
command with the path unchanged and it works.
Best regards,
Felix

Original comment by schnfx...@googlemail.com on 16 Mar 2012 at 12:37