[vtkusers] Clipping while preserving normals
Dov Grobgeld
dov.grobgeld at gmail.com
Mon Feb 10 12:55:55 EST 2014
Great! This is almost exactly what I needed! Was the option to only
generate the flat endcaps, mentioned on the wiki as vtkCutClosedSurface,
ever implemented? Currently I'm filtering the resulting triangles for all
their z-coordinate being on the cut plane, but this quite wasteful in time
for a large model and a large amount of slices.
Regards,
Dov
On Mon, Feb 10, 2014 at 4:09 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> Hi Dov,
>
> As far as I understand, vtkCutter does not produce an oriented output.
> You might want to look at vtkClipClosedSurface as an alternative:
> www.vtk.org/Wiki/index.php?title=VTK/Closed_Surface_Clipping
>
> - David
>
> On Mon, Feb 10, 2014 at 6:28 AM, Dov Grobgeld <dov.grobgeld at gmail.com>
> wrote:
> > Hello. I'm trying to do slicing of a complex model polygonal (read from
> an
> > STL file) with vtkCutter and I'm struggling to understand whether the
> > resulting polygons are "inside" or "outside". I realized that if I knew
> the
> > normal direction of the triangles cut by the vtkCutter, I could orient
> the
> > line segments of the cutting polygon such that "inside" is e.g. always on
> > the left side. But I couldn't find whether vtk retains a connection
> between
> > the cut polygon line segments and the corresponding 3D triangles that it
> > cut?
> >
> > Thanks in advance!
> > Dov
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140210/d97209aa/attachment.html>
More information about the vtkusers
mailing list