--- Model Definitions -- -- @topic models --- Global table. -- -- @table simple_models simple_models = { --- @table simple_models.cube_1x2x1 -- @tfield string mesh simple_models_cube_1x2x1.obj -- @tfield table box {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5} cube_1x2x1 = { mesh = "simple_models_cube_1x2x1.obj", box = {-0.5, -0.5, -0.5, 0.5, 1.5, 0.5}, }, --- @table simple_models.panel_1x2x1 -- @tfield string mesh simple_models_panel_1x2x1.obj -- @tfield table box {-0.5, -0.5, -0.5, 0.5, 1.5, -0.45} panel_1x2x1 = { mesh = "simple_models_panel_1x2x1.obj", box = {-0.5, -0.5, -0.5, 0.5, 1.5, -0.45}, }, } --- Global table. -- -- Alias of `simple_models` -- -- @table smodel if not core.global_exists("smodel") then smodel = simple_models end