mcx's srctype does support volumetric source. please follow this built-in example
https://github.com/fangq/mcx/blob/v2025.10/mcxlab/examples/demo_mcxlab_srctype.m#L291-L316
You don't often get email from vijit...@gmail.com. Learn why this is important
I am trying to simulate digimouse with the liver as a source (to mimic fluroscence imaging). But in Matlab scrtype doesnt accept volume as input. Is there a work around --
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/3940d221-4e3f-4359-b582-c7c6d6a46d8en%40googlegroups.com.
fixed in github now
https://github.com/fangq/mcx/commit/0426e2870db5286b22804e8e1a5120ab53f36d91
You don't often get email from vp...@rice.edu. Learn why this is important
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/a20090ba-6635-49c8-a20b-985608b9b2e1n%40googlegroups.com.
I am not sure what you meant by "volume of interest". the volume source in the built-in example spans between x=10-50, y=10-50, and z=20-60, which is within the original 60^3 volume.
even you push the volume source outside of the original volume, by setting cfg.srcpos=[10,10,30], the volumetric source can still be simulated, with the source being truncated outside of the volume.
I can not run your cylindrical source sample code. some functions are not defined in your sample code.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/e99bc9a2-4a15-4738-99da-65b926cac361n%40googlegroups.com.
the bug is actually in your code
cfg.srctype = 'pattern3D';
cfg.srcpattern = logical(src_pattern);
cfg.srcpos = [85.0 248.0 72.0];
cfg2.srcparam1 =
size(src_pattern);
cfg.srcdir = [0 0 -1 nan];
you never set cfg.srcparam1 to the right dimensions to match the srcpattern array size, instead you set it to a new struct cfg2.
renaming cfg2 to cfg make your code run.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/049ae64b-bd4f-4c6e-8d64-a474f291daaen%40googlegroups.com.

To view this discussion visit https://groups.google.com/d/msgid/mcx-users/2e706e10-5cd8-4bcf-a4c4-e876f9e6fc14%40neu.edu.

Please be conscious that there are over 400 subscribers in this mailing list. Please do not flood this forum with exchange of brief conversations or chats. This is not the right place for that.
I also strongly encourage you to read mcx/mcxlab documentation and all examples carefully and do the troubleshoot yourself before you ask questions.
If you have to ask, please provide detailed information with a reproducer code so that others can see the same problem. Describe what you have done, and why the results you believe is problematic. The more you provide, the better the developer know how to advise.
If you haven't read this before, I strongly encourage you to take a look at this classic article on how to ask questions on the Internet
http://www.catb.org/~esr/faqs/smart-questions.html
for now, please move further discussions (following the guideline described above), if necessary, to my email only and remove the mailing list from the recipient list.
To view this discussion visit https://groups.google.com/d/msgid/mcx-users/5455c5f6-bbbb-43ff-8cb7-8e728b6dcbcdn%40googlegroups.com.