<div dir="ltr"><div>You may try to use boolean operations for computing the "stub".</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter</a></div><div><br></div><div>If for example you have sphere and you slice it with a plan.</div><div>Boolean intersection of such 2 objects will be a polygon you can display ( you probably can use <span style="font:bold 21px/28px Roboto,sans-serif;color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal;font-size-adjust:none;font-stretch:normal;background-color:rgb(249,250,252)">vtkFillHolesFilter</span>to triangulate it )</div><div>to restore the look of solid after slicing.</div><div><br></div><div>Hope this helps,</div><div> Alex</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 10:46 PM, Muhammad Nour <span dir="ltr"><<a href="mailto:mnour.ai@hotmail.com" target="_blank">mnour.ai@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Dear Alex,<div><br></div><div>Thank you very much for your reply.</div><div><br></div><div>I can make presentation look like solid (e.x. by using opacity property).</div><div><br></div><div>But I want to slice an object, and result must be filled as if the object is solid.</div><div><br></div><div>Suppose my object is a torus, so I have slice as two circles (one inside other).</div><div><br></div><div>I want to fill space between these circles.</div><div><br></div><div>I have tried using vtkDelaunay3D class but it distorts objects.</div><div><br></div><div>Also I tried using vtkFillHolesFilter filter but it fills all empty space. </div><div><br></div><div>I hope I explaine my point.</div><div><br></div><div>Thank you again.<br><div class="hm HOEnZb"><br></div><div><div class="hm HOEnZb"><hr>Date: Tue, 17 Mar 2015 18:34:00 -0700<br>Subject: Re: [vtkusers] Fill interior 3D object<br>From: <a href="mailto:malyushytsky@gmail.com" target="_blank">malyushytsky@gmail.com</a><br>To: <a href="mailto:mnour.ai@hotmail.com" target="_blank">mnour.ai@hotmail.com</a><br>CC: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a></div><div><div class="h5"><br><br><div dir="ltr"><div>AFAI understand there is no solid objects there are presentations of solids.</div><div>Such presentation may look like solid unless you are inside the object. </div><div>If that not what you want you are on your own.</div><div><br></div><div>Similar to 2d , 3d objects exist for a solely purpose of presentation.</div><div>You may 'subdivide' your sphere for example and construct it from the number of hexahedrons ( like circle from quadrilaterals),</div><div>but even if you do so you will see those elements when you move your camera too close not like solids.</div><div><br></div><div>But if it what you want , you may look at Delaunay3D.</div><div><br></div><div>Regards, </div><div> Alex</div><div><br></div></div><div><br><div>On Sat, Mar 14, 2015 at 11:20 PM, Muhammad Nour <span dir="ltr"><<a href="mailto:mnour.ai@hotmail.com" target="_blank">mnour.ai@hotmail.com</a>></span> wrote:<br><blockquote style="padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div><div dir="ltr"><span style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">Hi all,</span><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)"><br style="line-height:21.29px"></div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">I am using MS visual studio 2008 and vtk 5.10</div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)"><br style="line-height:21.29px"></div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">I want to fill interior of some objects (like sphere), so they must be solid.</div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">I've tried vtkFillHolesFilter class but it fills holes of surface not inside object.</div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)"><br style="line-height:21.29px"></div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">Is there any other filter or class can do it?</div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)"><br style="line-height:21.29px"></div><div style="color:rgb(68,68,68);line-height:21.29px;font-size:15px;background-color:rgb(255,255,255)">Thank you very much</div>
<div dir="ltr"></div>
</div></div>
<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>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div></div></div></div> </div></div>
</blockquote></div><br></div>