mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-10 05:32:18 -06:00
* 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>
30 lines
759 B
Lua
30 lines
759 B
Lua
-- Basic
|
|
-- Example of a polygon cloud, which is a point cloud where a uniform polygon is used
|
|
-- for the shape of the points.
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePolygonCloud_Example",
|
|
Renderable = {
|
|
Type = "RenderablePolygonCloud",
|
|
File = asset.resource("../renderablepointcloud/data/dummydata.csv"),
|
|
Coloring = {
|
|
FixedColor = { 0.8, 0.0, 0.0 }
|
|
},
|
|
-- Specify the number of sides for the polygon. 3 = triangle, 4 = square,
|
|
-- 5 = pentagon, 6 = hexagon, and so on
|
|
PolygonSides = 6
|
|
},
|
|
GUI = {
|
|
Name = "Basic",
|
|
Path = "/Examples/RenderablePolygonCloud"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|