Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Jan 13, 2025
1 parent 4a95c9b commit 179c70f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/IO/VTK.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 179c70f

Please sign in to comment.