mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-27 06:19:51 -05:00
86d1b2d8a6
* Update pointcloud examples to conform with new example structure and add some new ones * Update name, GUI path and add title to top comment to match the decided format * Rename base examples to Basic, as agreed * Clarify TODO comment about broken label rotation --------- Co-authored-by: Alexander Bock <alexander.bock@liu.se> Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
25 lines
559 B
Lua
25 lines
559 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 = "Units",
|
|
Path = "/Examples/RenderablePointCloud"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|