[vtkusers] Cap Clip Surface
david.gobbi at gmail.com
Thu Sep 10 08:43:56 EDT 2015
The problem is that the VTK rendering pipeline expects polydata to contain
only convex polygons, but following code can create a non-convex polygon:
// Change the polylines into polygons
vtkSmartPointer<vtkPolyData> boundaryPoly =
The vtkContourTriangulator filter (which I contributed to VTK) can fix this:
// Triangulate the polyline contour
vtkSmartPointer<vtkContourTriangulator> triangulator =
// use the triangulator output as the cap
Please let me know if this works for you.
On Thu, Sep 10, 2015 at 3:38 AM, momo <lilymagic2005 at yahoo.com.hk> wrote:
> I have a surface like the left in the picture belows. I applied Cap Clip on
> the surface, and I append the original surface and the caps, then output to
> a .stl file. It looks well in the render window in VTK. However, when I
> Paraview to view the output file, it looks the same as the original
> The left of the picture shows the actual result of the output file after
> appending in Paraview. So what happened actually?Thanks.
> CapClip.cxx <http://vtk.1045678.n5.nabble.com/file/n5733821/CapClip.cxx>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers