hi Yu,
a few comments -
first, the mcxpreview function failed with your domain due to a
combination of several things - first, although mcx accepts both
cfg.vol and cfg.shapes, the mcxpreview function could not handle
it; secondly, the mcxplotshapes function used to handle cfg.shapes
does not support cfg.unitinmm, thus, even it can be plotted, it
will be in a different scale if your cfg.unitinmm is not 1.
I have fixed both, see the below bug tracker, and now your cfg
should be displayed correct
https://github.com/fangq/mcx/issues/131
for your question on the C0/C1 and ZLayers
shape constructs, you can find more info in the "MCX_Shape_Command_Help
"
section of the README:
https://github.com/fangq/mcx#using-json-formatted-shape-description-files
for a two-layered domain, you can use "ZLayers" in cfg.shapes, such as
cfg.shapes='{"Shapes":[{"ZLayers":[[1,29,1],[30,150,3]]},{"Cylinder":{"Tag":2,"C0":
[0.0,150.0,10.0], "C1":[300.0,150.0,10.0],"R":5.0}}]}';
if you define the above shapes, you could remove the
cfg(...30:end) line - but even you don't, the results will be the
same because the shape constructs overlays on top of cfg.vol.
let me know if you have further questions.
Qianqian
--
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 on the web visit https://groups.google.com/d/msgid/mcx-users/7523b915-fb7a-4426-84d9-327f91597ccdn%40googlegroups.com.