-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathruntime_switching.h
93 lines (86 loc) · 1.65 KB
/
runtime_switching.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* Copyright (C) 2024, Inria
* GRAPHDECO research group, https://team.inria.fr/graphdeco
* All rights reserved.
*
* This software is free for non-commercial, research and evaluation use
* under the terms of the LICENSE.md file.
*
* For inquiries contact [email protected]
*/
#pragma once
#include <cstdio>
#include <tuple>
#include <string>
class Switching
{
public:
static int expandToTarget(
int N,
int target,
int* nodes,
int* render_indices
);
static int expandToSize(
int N,
float target_size,
int* nodes,
float* boxes,
float* viewpoint,
float x, float y, float z,
int* render_indices,
int* node_markers,
int* parent_indices = nullptr,
int* nodes_for_render_indices=nullptr);
static void getTsIndexed(
int N,
int* indices,
float target_size,
int* nodes,
float* boxes,
float vx, float vy, float vz,
float x, float y, float z,
float* ts,
int* kids,
void* stream
);
static void changeToSizeStep(
float target_size,
int N,
int* node_indices,
int* new_node_indices,
int* nodes,
float* boxes,
float* viewpoint,
float x, float y, float z,
int* split,
int* render_indices,
int* parent_indices,
int* nodes_of_render_indices,
int* nodes_to_expand,
float* debug,
char*& scratchspace,
size_t& scratchspacesize,
int* NsrcI,
int* NdstI,
char* NdstC,
int* numI,
int maxN,
int& add_success,
int* new_N,
int* new_R,
int* need_expansion,
void* maintenanceStream);
static void markVisibleForAllViewpoints(
float target_size,
int* nodes,
int num_nodes,
float* boxes,
float* viewpoints,
int num_viewpoints,
int* seen,
float zx,
float zy,
float zz
);
};