Loading...
Searching...
No Matches
SceneFromCloud.hpp
1#pragma once
2
3#include <ossia/dataflow/geometry_port.hpp>
4
5#include <memory>
6#include <string_view>
7
8namespace Threedim::PrimitiveCloud
9{
10
11// Wrap a parsed primitive_cloud_component into a fresh scene_state with
12// one scene_node carrying it as its sole payload. Mirrors
13// SceneFromMeshes::sceneStateFromMeshes for the splat path.
14//
15// `source_label` becomes the scene_node name (typically the source
16// filename). Returns nullptr if `cloud` is null.
17std::shared_ptr<ossia::scene_state> sceneStateFromCloud(
18 ossia::primitive_cloud_component_ptr cloud,
19 std::string_view source_label = {});
20
21} // namespace Threedim::PrimitiveCloud