与えられた行がOBJ頂点行(v)かを判定する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | line |
判定対象の1行文字列。 |
logical pure function is_vertex_line(line) character(len=*), intent(in) :: line character(:), allocatable :: adj adj = adjustl(line) is_vertex_line = (len_trim(adj) > 1) .and. (adj(1:2) == 'v ') end function is_vertex_line