mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-01 09:10:18 -06:00
* Update name and path format of examples that follow the new structure * Fix a broken (updated) property name in an example * Make other examples' GUI paths more consistent * Put them all in the Examples folder
25 lines
561 B
Lua
25 lines
561 B
Lua
-- Units
|
|
-- This example creates a point cloud where the positions are interpreted to be in
|
|
-- another unit than meters (here kilometers).
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePointCloud_Example_Units",
|
|
Renderable = {
|
|
Type = "RenderablePointCloud",
|
|
File = asset.resource("data/dummydata.csv"),
|
|
Unit = "Km"
|
|
},
|
|
GUI = {
|
|
Name = "RenderablePointCloud - Units",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|