<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"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></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'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>
<<a href="mailto:ali.mahmoud.habib@gmail.com">ali.mahmoud.habib@gmail.com</a>> wrote:<br>
><br>
> I want to create a tetrahedral mesh upon 3D volume come from 2D slices, but<br>
> it give error any suggestion please:<br>
><br>
> My code:<br>
><br>
> vtk::vtkDICOMImageReader ^VDR = gcnew vtk::vtkDICOMImageReader();<br>
> VDR->SetDirectoryName("H:\\work\\Master<br>
> Degree\\DataSet\\case2\\DICOM\\PA1\\ST1\\SE2");<br>
> VDR->SetDataOrigin(0, 0, 0);<br>
><br>
> vtk::vtkImageChangeInformation ^VIC = gcnew<br>
> vtk::vtkImageChangeInformation();<br>
> VIC->SetInput(VDR->GetOutput());<br>
><br>
> vtkClipVolume ^v = gcnew vtkClipVolume();<br>
> v->SetInputConnection(VDR->GetOutputPort());<br>
> v->SetValue(2.0);<br>
> v->GenerateClippedOutputOff();<br>
><br>
> vtkDataSetMapper ^mapper = gcnew vtkDataSetMapper();<br>
> mapper->SetInputConnection(v->GetOutputPort());<br>
><br>
> // actor coordinates geometry, properties, transformation<br>
> vtkActor ^aSphere = gcnew vtkActor();<br>
> aSphere->SetMapper(mapper);<br>
> // aSphere.GetProperty().SetRepresentationToWireframe();<br>
> //aSphere.GetProperty().SetColor(0,0,1); // sphere color blue<br>
><br>
> // a renderer and render window<br>
> vtkRenderer ^ren1 = gcnew vtkRenderer();<br>
> vtkRenderWindow ^renWin = gcnew vtkRenderWindow();<br>
> renWin->AddRenderer(ren1);<br>
><br>
> // an interactor<br>
> vtkRenderWindowInteractor ^iren = gcnew vtkRenderWindowInteractor();<br>
> iren->SetRenderWindow(renWin);<br>
><br>
> // add the actor to the scene<br>
> ren1->AddActor(aSphere);<br>
> //ren1.SetBackground(1,1,1); // Background color white<br>
><br>
> // render an image (lights and cameras are created automatically)<br>
> renWin->Render();<br>
><br>
> // begin mouse interaction<br>
> iren->Start();<br>
> --<br>
> 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>
> Sent from the VTK - Users mailing list archive at Nabble.com.<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> 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>
><br>
> 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>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
</blockquote></div><br></div></div>