Skip to content

Commit

Permalink
update stl
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Sep 6, 2024
1 parent ba3b348 commit b7739eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/stl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function load(fs::Stream{format"STL_BINARY"}; facetype=GLTriangleFace,
i += 1
end

return Mesh(meta(vertices; normals=normals), faces)
return Mesh(vertices, faces; normal = normals)
end


Expand Down Expand Up @@ -127,5 +127,5 @@ function load(fs::Stream{format"STL_ASCII"}; facetype=GLTriangleFace,
push!(faces, TriangleFace{Int}(vert_idx...))
end
end
return Mesh(meta(points; normals=normals), faces)
return Mesh(points, faces; normal = normals)
end

0 comments on commit b7739eb

Please sign in to comment.