hi Wendy
v2m and v2s accept opt.A and opt.B to apply a linear transformation
to the generated mesh. Assuming a mesh node p={x,y,z}, the
transformed coordinate is
p_new=opt.A*p+B
where A is a 3x3 matrix, B is a 3x1 vector.
using such matrix, one can encode scaling, translation, and
rotation to the resulting mesh. For example, if you want to
scale the mesh by a factor of 2, you simply set
opt.A=diag([2,2,2]); opt.B=zeros(3,1);
In fact, because setting voxel size is quite simply, you can
even run the scaling separately from v2m. A single line of
code should be suffice.
Qianqian
>
> Thanks,
> Wendy
>
Hi Qianqian,opt.A and opt.B do not seem to work with the option 'cgalmesh'I can use 'cgalsurf', but as I am working with multi-region binary images 'cgalmesh' works nicer.Can opt.A and opt.B be easily included in 'cgalmesh'?
Thanks,Wendy
2011/8/9 Qianqian Fang <fan...@gmail.com>