basic labels
This commit is contained in:
parent
997addae84
commit
070c1290b9
@ -134,6 +134,12 @@ async def main():
|
||||
for point in points_3d:
|
||||
city_marker = pv.Sphere(center=point, radius=0.02)
|
||||
plotter.add_mesh(city_marker, color="blue")
|
||||
|
||||
labels = [str(_) for _ in range(len(points_3d))]
|
||||
raised_points = [ point * 1.1 for point in points_3d]
|
||||
if raised_points:
|
||||
plotter.add_point_labels(raised_points, labels, point_size=0, font_size=14)
|
||||
|
||||
for i in range(len(points_3d[:-1])):
|
||||
arch = generate_arch(points_3d[i], points_3d[i + 1], height_factor=0.2)
|
||||
line = pv.lines_from_points(arch, close=False)
|
||||
|
Loading…
Reference in New Issue
Block a user