InverseLight / ValoMC

Monte Carlo software for simulating light propagation
https://inverselight.github.io/ValoMC/
Other
43 stars 14 forks source link

error in matlab #2

Open seprj opened 4 years ago

seprj commented 4 years ago

HI when i use this page https://inverselight.github.io/ValoMC/netgentest3d.html this paragraph This example demonstrates how to setup a 3D simulation on a geometry built with Netgen and run it. The geometry is a sphere within a cube. The sphere has a different refractive index than the cube. The mesh is created so that there is a circular domain within one surface of the cube. You can view the Netgen Python source code here but in last sentence i couldent find anything in here, plz help me because i have not sphere_in_box.vol to run this example or i must covert py to matlab for this example , thank you a lot

aaleino commented 4 years ago

Hi,

Thanks for reporting the missing link. I have now added the file. The link should work now. You don't need to convert, but you need to install NETGEN and build the 'VOL' file using the source code provided. For example:

(once NETGEN is installed) python3 netgen_sphere_in_box.py

this will create the VOL file.

Best, Aleksi

seprj commented 4 years ago

Hello sir, I apologize for the many questions and thank you very much for patiently answering my questions, I'm having trouble running this example https://inverselight.github.io/ValoMC/netgentest3d.html i install cmake , but i dont understant use it I used this link https://www.aparat.com/v/iWFC6 to build the code file but I don't know how to use it in MATLAB and still have errors in MATLAB. Thank you for guiding me as a tutorial movie, because after a month I was really disappointed Thank you for giving me your time

aaleino commented 4 years ago

Hi,

I have now added this file to compile_vmc_mex.

If you re-download and re-install ValoMC by following the instructions in README.md, it will be compiled automatically.

Regards, Aleksi

supperpojke commented 3 years ago

Hi, Aleksi,

I have the same problem. I just download the ValoMC and install following the instruction. I am trying the example [https://inverselight.github.io/ValoMC/netgentest3d.html]. after I run it, matlab shows" Cannot find mex function createBH3. It is located at cpp/3d/createBH3mex.cpp. See installation instructions how to compile it" what shall I do?

Best, suj