Triangulation plot triangle plot

Im trying to create a triangulation (triangle Plot) plot and dont even know how to do ist can someone help please?
using VoronoiDelaunay
using GeometricalPredicates
using DataFrames, Plots
pyplot()

#mit unterer Aussenlinie initialisieren
x = collect(-1:0.1:1)

y = -1*ones(size(x))

#obere Aussenlinie hinzufuegen
xtemp = collect(-1:0.1:1)
ytemp = 1*ones(size(x))

x = [x’ xtemp’]
y = [y’ ytemp’]

#rechte Aussenlinie hinzufuegen
ytemp = collect(-1:0.1:1)
xtemp = 1*ones(size(ytemp))

x = [x xtemp’]
y = [y ytemp’]

#linke Aussenlinie hinzufuegen
ytemp = collect(-1:0.1:1)
xtemp = -1*ones(size(ytemp))

x = [x xtemp’]
y = [y ytemp’]

#zufaellige Innenpunkte hinzufuegen
xtemp = 2rand(1,500)-ones(1,500)
ytemp = 2
rand(1,500)-ones(1,500)

x = [x xtemp]
y = [y ytemp]
vec(x)
vec(y)
##Delaunay-Triangulierung hinzufuegen
plot(tess) = DelaunayTessellation(x,y)
##Triangulierung plotten

1 Like

Mit x,y, zur triangulierung kann mann auch MiniQhull und Makie benutzen.

using MiniQhull, Makie
p = [x;y]
t = delaunay(p)
scene = mesh(p',t')
wireframe!(scene[end][1], color = (:red, 0.6), linewidth = 3)

2 Likes

Thanks