Rerun C++ SDK
Loading...
Searching...
No Matches
mesh_face_rendering.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_sdk_types/definitions/rerun/components/mesh_face_rendering.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 /// \private
13 template <typename T>
14 class NumericBuilder;
15
16 class Array;
17 class DataType;
18 class UInt8Type;
19 using UInt8Builder = NumericBuilder<UInt8Type>;
20} // namespace arrow
21
22namespace rerun::components {
23 /// **Component**: Determines which faces of a mesh are rendered.
24 ///
25 /// For this purpose, we assume that the winding order of vertices in a mesh is
26 /// consistent and that front faces are defined as those with vertices in counter clockwise order.
27 enum class MeshFaceRendering : uint8_t {
28
29 /// Show both back and front faces.
30 DoubleSided = 1,
31
32 /// Only front faces are shown.
33 ///
34 /// Front faces are assumed to have a counter clockwise vertex winding order on screen.
35 Front = 2,
36
37 /// Only back faces are shown.
38 ///
39 /// Back faces are assumed to have a clockwise vertex winding order on screen.
40 Back = 3,
41 };
42} // namespace rerun::components
43
44namespace rerun {
45 template <typename T>
46 struct Loggable;
47
48 /// \private
49 template <>
50 struct Loggable<components::MeshFaceRendering> {
51 static constexpr std::string_view ComponentType = "rerun.components.MeshFaceRendering";
52
53 /// Returns the arrow data type this type corresponds to.
54 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
55
56 /// Serializes an array of `rerun::components::MeshFaceRendering` into an arrow array.
57 static Result<std::shared_ptr<arrow::Array>> to_arrow(
58 const components::MeshFaceRendering* instances, size_t num_instances
59 );
60
61 /// Fills an arrow array builder with an array of this type.
62 static rerun::Error fill_arrow_array_builder(
63 arrow::UInt8Builder* builder, const components::MeshFaceRendering* elements,
64 size_t num_elements
65 );
66 };
67} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:79
MeshFaceRendering
Component: Determines which faces of a mesh are rendered.
Definition mesh_face_rendering.hpp:27
@ Back
Only back faces are shown.
@ DoubleSided
Show both back and front faces.
@ Front
Only front faces are shown.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23