Dear Miguel,
 vtkvmtkPolyDataScissors class is meant to produce cuts on the surface,
i.e. to create a crease along the specified line and topologically detach the 
two sides of the crease. It won't detach any portion of the surface and,
as a matter of facts, it won't always produce a cut that separates the input
into two disconnected portions - it depends on how the input line is defined.

To verify if the cut has taken place after the filtering, just save the surface
and open it with Paraview. Use the Feature Edges filter and only keep
the Boundary Edges checkbox checked. You should see a line where
you defined the cut.

If you don't, please send over a sample case of your line and surface and
I'll take a look.

Best,


Luca


On Dec 21, 2012, at 12:12 PM, Miguel Sotaquira wrote:

> Hi Luca,
> 
> I'm trying to cut an open triangulated surface (polydata) using the wrapped 
> version of vtkvmtkPolyDataScissors. I've managed to correctly create the 
> 'CutLine' polydata (with the corresponding points, cells and idArray in the 
> correct polydata locations where I want to perform the cutting). Then I use 
> vtkvmtkPolyDataScissors in this way:
> 
> scissor=vmtk.vtkvmtk.vtkvmtkPolyDataScissors()
> scissor.SetCutLine(CutLine)
> scissor.SetCutLinePointIdsArrayName('idArray')
> scissor.SetInput(Surface)
> scissor.Update()
> 
> where 'Surface' is the polydata I want to cut. I use the method GetOutput() 
> from 'scissor' to obtain the result of cutting (is this right?); when 
> rendering this output I'm getting the same input polydata ('Surface'), i.e. 
> no cutting has been performed. Am I missing something? Is this the correct 
> use of vtkvmtkPolyDataScissors?
> 
> Thanks for your suggestions,
> Miguel
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to