A model frame named name (decorations of color color), with the
model file file if given (see set_model).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
the frame's name |
||
| character(len=*), | intent(in), | optional | :: | file |
model file (3ds, obj, glTF, ...) |
|
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
function new_model(name, file, color) result(m) character(len=*), intent(in) :: name !! the frame's name character(len=*), intent(in), optional :: file !! model file (3ds, obj, glTF, ...) real(wp), intent(in), optional :: color(:) !! [r, g, b] or [r, g, b, a] (0 to 1) type(Model) :: m logical :: ok m%ReferenceFrame = ReferenceFrame(name, color) if (present(file)) ok = m%set_model(file) end function new_model