[vtkusers] clip surface, fill hole

Sebastien Valette sebastien.valette at creatis.insa-lyon.fr
Thu Jun 5 11:59:05 EDT 2008


Hi,

A while ago, I already asked permission from the original author 
(Bertrand Delhay) to distribute this code, and he was OK, so feel free 
to use this. On a side note, he said that this code was far from 
perfect, but you never know...

Sebastien

Alexandre GOUAILLARD a écrit :
> Hi bryn,
>
> Long time ago, we developped a class to do that. It's quite simple, but
> still it's creating a triangulated patch for any "hole" on the surface.
> Code is not optimized, comments are in french, but it should still work.
> Give it a try.
>
> Supposely, you should contact CREATIS lab. (www.creatis.insa-lyon.fr) to be
> able to use it, but I don't foresee any problem. I copy my contact there for
> you to catch up with him, if you want.
>
> Alex.
>
>
> On 6/4/08 8:33 PM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
>
>   
>> Bryn,
>>
>> Look at
>> VTK/Graphics/Testing/Tcl/capCow.tcl
>>
>> an oldie but goodie,
>>
>> Bill
>>
>> On Wed, Jun 4, 2008 at 12:20 PM, Bryn Lloyd <blloyd at vision.ee.ethz.ch> wrote:
>>     
>>> Bryn Lloyd wrote:
>>>       
>>>> Dear users,
>>>>
>>>>
>>>> I would like to clip a triangle surface, e.g. using a plane. Is there a
>>>> filter that will fill the resulting hole with triangles? I.e. the resulting
>>>> surface mesh should remain closed.
>>>>
>>>> I could not find one. Does anybody have any hints/suggestions?
>>>>
>>>> What about using the vtkCutter, doing Delaunay2D on the output (if there
>>>> is only one connected curve/line) and merging the patch with the clipped
>>>>  surface?
>>>>         
>>> Well, that obviously only works if the curve around the hole is convex . In
>>> my example it is not, so I need a better solution.
>>> Another assumption behind the proposed algorithm is that vtkCutter and
>>> vtkClipPolyData deliver the same cut interface (edges and points). Not sure
>>> if that is true.
>>>
>>>
>>>
>>> --Bryn
>>> _______________________________________________
>>> This is the private VTK discussion list.
>>> Please keep messages on-topic. Check the FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>       
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>     
>
>   




More information about the vtkusers mailing list