[Python] Creating complex concave polygonal surface from points in vtk

Discussão em 'Python' iniciado por Stack, Julho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am working on a project where I need to generate surfaces from user-defined points to create polygons. For convex polygons, I am able to generate surfaces using the Delaunay2D triangulation method without any issues. However, when I try to generate surfaces for concave polygons, I am encountering some problems.

    For example, when I define points on a concave polygon, such as the one shown in the image below, and generate a surface using Delaunay2D, I get a filled surface that does not accurately represent the polygon:

    Points on a concave polygon:

    [​IMG]

    Surface generated using vtkDelaunay2D:

    [​IMG]

    I have tried many other methods for surface generation, but I have not been able to figure out the right way to perform surface generation for concave polygons.

    Can anyone suggest a method for generating surfaces from user-defined points for concave polygons? Any help would be greatly appreciated. Thank you in advance!

    Continue reading...

Compartilhe esta Página