Files
OpenSpace/data/assets/examples/renderable/renderablepolygoncloud/polygoncloud.asset
Emma Broman 8a42657deb Feature/examples naming (#3305)
* 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
2024-06-13 10:42:00 +02:00

30 lines
761 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 = "RenderablePolygonCloud - Basic",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)