Segment s (at point 1 + (s-1) stride; first_drawn to first_drawn + num_drawn - 1 drawn) as written: read back from the line buffers.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SegmentArtist), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | s |
the segment (first_drawn to first_drawn + num_drawn - 1) |
||
| real(kind=wp), | intent(out) | :: | a(3) |
the segment's start (frame coordinates) |
||
| real(kind=wp), | intent(out) | :: | b(3) |
its end |
subroutine drawn_segment(self, s, a, b) class(SegmentArtist), intent(in) :: self integer, intent(in) :: s !! the segment (first_drawn to first_drawn + num_drawn - 1) real(wp), intent(out) :: a(3) !! the segment's start (frame coordinates) real(wp), intent(out) :: b(3) !! its end a = self%chain%point(2 * s - 1) b = self%chain%point(2 * s) end subroutine drawn_segment