[Insight-users] Re: help on how to add new element to itk
Luis Ibanez
luis.ibanez at kitware.com
Fri, 09 Jan 2004 15:57:09 -0500
This is a multi-part message in MIME format.
--------------060401060303080006030905
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi Luzhong,
Thanks for sending the other files.
Your code works for me, compiles fine in
VisualStudio.Net and when executed it
generates the following output:
Mass matrix:
0.388889 0 0.138889 0 0.111111 0 0.277778 0
0 0.388889 0 0.138889 0 0.111111 0 0.277778
0.138889 0 0.166667 0 0.166667 0 0.111111 0
0 0.138889 0 0.166667 0 0.166667 0 0.111111
0.111111 0 0.166667 0 0.5 0 0.305556 0
0 0.111111 0 0.166667 0 0.5 0 0.305556
0.277778 0 0.111111 0 0.305556 0 0.722222 0
0 0.277778 0 0.111111 0 0.305556 0 0.722222
Material matrix:
30000 0 0 0
0 30000 0 0
0 0 30000 0
0 0 0 30000
#dof per node = 2
Test PASSED!
---------------------------------------------
The only line I changed was on the "pragma"
that was misspelled as "progam" in your file.
I built this against a CVS checkout of ITK
(updated today) so the vnl methods "resize"
were changed to "set_size()".
Please find attached the files.
Regards,
Luis
-----------------------
luzhong yin wrote:
> Hi, Luis
>
> Thank you in advance.
>
> Luzhong
>
> The rest code is
>
......
>
--------------060401060303080006030905
Content-Type: application/x-zip-compressed;
name="LuzhongYin.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="LuzhongYin.zip"
UEsDBBQAAAAIAAV+KTC2h8Ow9QAAAHYBAAAZAAAATHV6aG9uZ1lpbi9DTWFrZUxpc3RzLnR4
dHVPQWrDMBA81+A/iJCDezGlP1CkVVAtS64kQ26ipAqExjbUChhC/t6Vc2qhB61WszOzo86a
N2C+EtDGJT2XRVkIqXnoKGvoHirpGwSlyE0Qptccn09SM9VzqLa3DPcOgpAK7jgC5eA3twXn
spOgnqoA1hpLNsgg45TIabqOnzXpLvFjjmSOiWQtl7beZDPN/2zGKI/VmYO5jZXgqrIgZHt7
fCE401u2zu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