Loading...
Searching...
No Matches
ArrayToGeometry.hpp
1#pragma once
2
3#include <Threedim/TinyObj.hpp>
4#include <boost/container/vector.hpp>
5#include <halp/controls.hpp>
6#include <halp/geometry.hpp>
7#include <halp/meta.hpp>
8#include <ossia/detail/pod_vector.hpp>
9
10namespace Threedim
11{
12
14{
15public:
16 halp_meta(name, "Array to mesh")
17 halp_meta(category, "Visuals/3D")
18 halp_meta(c_name, "array_to_mesh")
19 halp_meta(manual_url, "https://ossia.io/score-docs/processes/array-to-mesh.html")
20 halp_meta(uuid, "dfc5bae9-c75c-4180-b4e8-be3063c8d8f2")
21
22 struct ins
23 {
24 struct : halp::val_port<"Input", std::vector<float>>
25 {
26 void update(ArrayToMesh& self) { self.create_mesh(value); }
27 } in;
28 PositionControl position;
29 RotationControl rotation;
30 ScaleControl scale;
31
32 halp::toggle<"Triangulate"> triangulate;
33 } inputs;
34
35 PrimitiveOutputs outputs;
36 void create_mesh(std::span<float> v);
37
38 std::vector<float> complete;
39};
40
41}
Definition ArrayToGeometry.hpp:14
Definition ArrayToGeometry.hpp:23
Definition TinyObj.hpp:63
Definition TinyObj.hpp:82
Definition TinyObj.hpp:68
Definition TinyObj.hpp:72