<div dir="ltr">I stated the error several times which is : vtktypeidarray: cannot allocate 16085090 element of size.. , I am a beginner and need any developer to do a favor for me , and revise my code please <div><br></div>
<div>and I tried most of the suggestions and I failed to apply them and that what made me send several timese , I use it as mesh generator because I use .NET , and managed ITK not support FEM <br><br><div class="gmail_quote">
On Sun, Oct 25, 2009 at 11:33 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Infoseeker, Ali Habib,<br>
<br>
I count over 80 messages from you and assorted replies from vtk<br>
developers and users.<br>
<br>
Your multiple posts are not resulting in any solutions to your<br>
problem. For example this post says you have an error. What error?<br>
<br>
The vtk user community seeks to help users that have problems and are<br>
willing to accept the advice of the community. Every reply requires<br>
time and effort spent by an individual that wants to help you.<br>
<br>
>From what I can tell from these dozens of e-mails is that you want to<br>
generate a tetrahedral mesh from DICOM data for the purpose of finite<br>
element analysis.<br>
<br>
VTK is not a mesh generation system. It&#39;s primary purpose is<br>
visualization. Some posts have suggested alternative systems for<br>
finite element mesh generation. Please review those e-mails.<br>
<br>
Please stop asking the same questions over and over using multiple<br>
email addresses.<br>
<br>
Bill<br>
<br>
On Sun, Oct 25, 2009 at 5:09 PM, InfoSeekerr<br>
&lt;<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I want to create a tetrahedral mesh upon 3D volume come from 2D slices, but<br>
&gt; it give error any suggestion please:<br>
&gt;<br>
&gt; My code:<br>
&gt;<br>
&gt; vtk::vtkDICOMImageReader ^VDR = gcnew vtk::vtkDICOMImageReader();<br>
&gt;                        VDR-&gt;SetDirectoryName(&quot;H:\\work\\Master<br>
&gt; Degree\\DataSet\\case2\\DICOM\\PA1\\ST1\\SE2&quot;);<br>
&gt;                        VDR-&gt;SetDataOrigin(0, 0, 0);<br>
&gt;<br>
&gt;                        vtk::vtkImageChangeInformation ^VIC = gcnew<br>
&gt; vtk::vtkImageChangeInformation();<br>
&gt;                        VIC-&gt;SetInput(VDR-&gt;GetOutput());<br>
&gt;<br>
&gt;                        vtkClipVolume ^v = gcnew vtkClipVolume();<br>
&gt;                        v-&gt;SetInputConnection(VDR-&gt;GetOutputPort());<br>
&gt;                        v-&gt;SetValue(2.0);<br>
&gt;                        v-&gt;GenerateClippedOutputOff();<br>
&gt;<br>
&gt;                        vtkDataSetMapper ^mapper = gcnew vtkDataSetMapper();<br>
&gt;                        mapper-&gt;SetInputConnection(v-&gt;GetOutputPort());<br>
&gt;<br>
&gt;                        // actor coordinates geometry, properties, transformation<br>
&gt;                        vtkActor ^aSphere = gcnew vtkActor();<br>
&gt;                        aSphere-&gt;SetMapper(mapper);<br>
&gt;                        // aSphere.GetProperty().SetRepresentationToWireframe();<br>
&gt;                        //aSphere.GetProperty().SetColor(0,0,1); // sphere color blue<br>
&gt;<br>
&gt;                        // a renderer and render window<br>
&gt;                        vtkRenderer ^ren1 = gcnew vtkRenderer();<br>
&gt;                        vtkRenderWindow ^renWin = gcnew vtkRenderWindow();<br>
&gt;                        renWin-&gt;AddRenderer(ren1);<br>
&gt;<br>
&gt;                        // an interactor<br>
&gt;                        vtkRenderWindowInteractor ^iren = gcnew vtkRenderWindowInteractor();<br>
&gt;                        iren-&gt;SetRenderWindow(renWin);<br>
&gt;<br>
&gt;                        // add the actor to the scene<br>
&gt;                        ren1-&gt;AddActor(aSphere);<br>
&gt;                        //ren1.SetBackground(1,1,1); // Background color white<br>
&gt;<br>
&gt;                        // render an image (lights and cameras are created automatically)<br>
&gt;                        renWin-&gt;Render();<br>
&gt;<br>
&gt;                        // begin mouse interaction<br>
&gt;                        iren-&gt;Start();<br>
&gt; --<br>
&gt; View this message in context: <a href="http://www.nabble.com/what%27s-wrong-with-my-code-tp26051836p26051836.html" target="_blank">http://www.nabble.com/what%27s-wrong-with-my-code-tp26051836p26051836.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
</blockquote></div><br></div></div>