LCOV - code coverage report
Current view: top level - src - removevertex.jl (source / functions) Hit Total Coverage
Test: on branch nothing Lines: 7 7 100.0 %
Date: 2025-07-10 13:12:25 Functions: 0 0 -

          Line data    Source code
       1             : """
       2             :     removevertex!(mesh, v::VHnd)
       3             : 
       4             : Remove vertex `v` **and any face incident** to `v`.
       5             : 
       6             : No effect if `v` is not used.
       7             : """
       8          11 : function removevertex!(mesh::Mesh, v::VHnd)
       9          11 :     !isused(mesh, v) && return v
      10             : 
      11          42 :     while !isempty(fan(mesh, v))
      12          31 :         removeface!(mesh, first(fan(mesh, v)))
      13          31 :     end
      14             : 
      15          11 :     _setunused!(mesh, v)
      16             : 
      17          11 :     v
      18             : end

Generated by: LCOV version 1.16