From 179c70f33e4e3cf4fbdf564f84198099fe675f7e Mon Sep 17 00:00:00 2001 From: Pascal Aellig Date: Mon, 13 Jan 2025 14:13:36 +0100 Subject: [PATCH] format --- src/IO/VTK.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/IO/VTK.jl b/src/IO/VTK.jl index 5f38df6a..b7f1470d 100644 --- a/src/IO/VTK.jl +++ b/src/IO/VTK.jl @@ -141,10 +141,14 @@ h_vertices = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9] save_marker_chain("Example", cell_vertices, h_vertices) ``` """ -function save_marker_chain(fname::String, cell_vertices::LinRange{Float64}, h_vertices::Vector{Float64}) +function save_marker_chain( + fname::String, cell_vertices::LinRange{Float64}, h_vertices::Vector{Float64} +) cell_vertices_vec = collect(cell_vertices) # Convert LinRange to Vector n_points = length(cell_vertices_vec) - points = [SVector{3, Float64}(cell_vertices_vec[i], h_vertices[i], 0.0) for i in 1:n_points] + points = [ + SVector{3,Float64}(cell_vertices_vec[i], h_vertices[i], 0.0) for i in 1:n_points + ] lines = [MeshCell(PolyData.Lines(), 1:(n_points))] # Create a single line connecting all points vtk_grid(fname, points, lines) do vtk