v x y z 形式の頂点行を3次元座標へ変換する。
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | line |
OBJ頂点行(例: |
||
| real(kind=dp), | intent(out) | :: | p(3) |
subroutine parse_vertex_line(line, p) character(len=*), intent(in) :: line real(dp), intent(out) :: p(3) character(len=1024) :: s s = trim(adjustl(line)) read (s(3:), *) p(1), p(2), p(3) end subroutine parse_vertex_line