%% test cylinder with planar illumination
[node, face,elem] = meshacylinder([0,0,0], [0,45,0], 10, 1);
figure(1),plotmesh(node,elem);
elem(:,5) = 1;
%% set pattern
cfg.srctype = 'pattern';
cfg.srcparam1 = [10,0,0,4];
cfg.srcparam2 = [0,10,0,4];
cfg.srcpos = [-5, 30, 12];
cfg.srcdir = [0, 0, 1];
%% add src pattern
srcdef = struct('srctype', cfg.srctype, 'srcpos', cfg.srcpos, 'srcdir',...
cfg.srcdir, 'srcparam1', cfg.srcparam1, 'srcparam2', cfg.srcparam2);
[node, elem] = mmcaddsrc(node, elem, ...
mmcsrcdomain(srcdef,[min(node);max(node)], 'rotate', pi/7));
%% plot
figure(2),plotmesh(node,elem)
%% display elemprop
disp(['min(elem(:,5)) = ',num2str(min(elem(:,5)))]);
Il giorno 3 nov 2024, alle ore 22:19, 'Fang, Qianqian' via mmc-users <mmc-...@googlegroups.com> ha scritto:
To view this discussion visit https://groups.google.com/d/msgid/mmc-users/SN6PR06MB41112F9297A5E349ECEA2093E4502%40SN6PR06MB4111.namprd06.prod.outlook.com.
hi Andrea, sorry for the late reply - I was hoping to find time
to look into this, but have been working on something else
instead.
I was able to see this error, and was able to commit a fix moment
ago, see my commit
https://github.com/fangq/iso2mesh/commit/68292e6b46a9d6dba41122408ea3184adeaa5229
let me know if you are able to use this patch to get around.
thanks again for reporting this issue, I would have missed!
To view this discussion visit https://groups.google.com/d/msgid/mmc-users/9a65aec0-6009-449c-9048-e558e59aeb85n%40googlegroups.com.