| 1 |
// Copyright(C) 1999-2021 National Technology & Engineering Solutions |
| 2 |
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
// NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
// |
| 5 |
// See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
#ifndef __OPERATIONS_VALID_TESTS_H |
| 8 |
#define __OPERATIONS_VALID_TESTS_H |
| 9 |
|
| 10 |
#include <string> |
| 11 |
|
| 12 |
std::string OperationBaseline = R"( |
| 13 |
begin catalyst |
| 14 |
begin clip clipNone |
| 15 |
relative point on plane = -0.5 0 0 |
| 16 |
plane normal = 1 0 0 |
| 17 |
side to keep = positive |
| 18 |
end clip |
| 19 |
begin camera singletestcamera |
| 20 |
look direction = -1 -1 -1 |
| 21 |
end |
| 22 |
begin imageset fooImageset |
| 23 |
camera = singletestcamera |
| 24 |
operation = clipNone |
| 25 |
image size = 800 450 |
| 26 |
end imageset |
| 27 |
end |
| 28 |
)"; |
| 29 |
|
| 30 |
std::string OperationClip = R"( |
| 31 |
begin catalyst |
| 32 |
begin clip clipNone |
| 33 |
relative point on plane = -0.5 0 0 |
| 34 |
plane normal = 1 0 0 |
| 35 |
side to keep = positive |
| 36 |
end clip |
| 37 |
begin clip fooOperation |
| 38 |
input = clipNone |
| 39 |
end clip |
| 40 |
begin camera singletestcamera |
| 41 |
look direction = -1 -1 -1 |
| 42 |
end |
| 43 |
begin imageset fooImageset |
| 44 |
camera = singletestcamera |
| 45 |
operation = fooOperation |
| 46 |
image size = 800 450 |
| 47 |
end imageset |
| 48 |
end |
| 49 |
)"; |
| 50 |
|
| 51 |
std::string OperationClipAbsolutePoint = R"( |
| 52 |
begin catalyst |
| 53 |
begin clip clipNone |
| 54 |
relative point on plane = -0.5 0 0 |
| 55 |
plane normal = 1 0 0 |
| 56 |
side to keep = positive |
| 57 |
end clip |
| 58 |
begin clip fooOperation |
| 59 |
input = clipNone |
| 60 |
absolute point on plane = 3.0 0.1 0.2 |
| 61 |
plane normal = 1 1 0 |
| 62 |
end clip |
| 63 |
begin camera singletestcamera |
| 64 |
look direction = -1 -1 -1 |
| 65 |
end |
| 66 |
begin imageset fooImageset |
| 67 |
camera = singletestcamera |
| 68 |
operation = fooOperation |
| 69 |
image size = 800 450 |
| 70 |
end imageset |
| 71 |
end |
| 72 |
)"; |
| 73 |
|
| 74 |
std::string OperationClipRelativePoint = R"( |
| 75 |
begin catalyst |
| 76 |
begin clip clipNone |
| 77 |
relative point on plane = -0.5 0 0 |
| 78 |
plane normal = 1 0 0 |
| 79 |
side to keep = positive |
| 80 |
end clip |
| 81 |
begin clip fooOperation |
| 82 |
input = clipNone |
| 83 |
#relative point on plane = 0.25 0.1 0.05 |
| 84 |
relative point on plane = 0.25 0.3 0.5 |
| 85 |
plane normal = 1 1 0 |
| 86 |
end clip |
| 87 |
begin camera singletestcamera |
| 88 |
look direction = -1 -1 -1 |
| 89 |
look at absolute distance = 10.0 |
| 90 |
end |
| 91 |
begin imageset fooImageset |
| 92 |
camera = singletestcamera |
| 93 |
operation = fooOperation |
| 94 |
image size = 800 450 |
| 95 |
end imageset |
| 96 |
end |
| 97 |
)"; |
| 98 |
|
| 99 |
std::string OperationClipNode = R"( |
| 100 |
begin catalyst |
| 101 |
begin clip clipNone |
| 102 |
relative point on plane = -0.5 0 0 |
| 103 |
plane normal = 1 0 0 |
| 104 |
side to keep = positive |
| 105 |
end clip |
| 106 |
begin clip fooOperation |
| 107 |
input = clipNone |
| 108 |
node on plane = 20 |
| 109 |
plane normal = 1.0 1.0 0.0 |
| 110 |
end clip |
| 111 |
begin camera singletestcamera |
| 112 |
look direction = -1 -1 -1 |
| 113 |
end |
| 114 |
begin imageset fooImageset |
| 115 |
camera = singletestcamera |
| 116 |
operation = fooOperation |
| 117 |
image size = 800 450 |
| 118 |
end imageset |
| 119 |
end |
| 120 |
)"; |
| 121 |
|
| 122 |
std::string OperationClipElement = R"( |
| 123 |
begin catalyst |
| 124 |
begin clip clipNone |
| 125 |
relative point on plane = -0.5 0 0 |
| 126 |
plane normal = 1 0 0 |
| 127 |
side to keep = positive |
| 128 |
end clip |
| 129 |
begin clip fooOperation |
| 130 |
input = clipNone |
| 131 |
element on plane = 17 |
| 132 |
plane normal = 1.0 0.25 0.0 |
| 133 |
end clip |
| 134 |
begin camera singletestcamera |
| 135 |
look direction = -1 -1 -1 |
| 136 |
end |
| 137 |
begin imageset fooImageset |
| 138 |
camera = singletestcamera |
| 139 |
operation = fooOperation |
| 140 |
image size = 800 450 |
| 141 |
end imageset |
| 142 |
end |
| 143 |
)"; |
| 144 |
|
| 145 |
std::string OperationClipPlaneNormal = R"( |
| 146 |
begin catalyst |
| 147 |
begin clip clipNone |
| 148 |
relative point on plane = -0.5 0 0 |
| 149 |
plane normal = 1 0 0 |
| 150 |
side to keep = positive |
| 151 |
end clip |
| 152 |
begin clip fooOperation |
| 153 |
input = clipNone |
| 154 |
plane normal = 1 2 3 |
| 155 |
absolute point on plane = 3.0 0.1 0.2 |
| 156 |
end clip |
| 157 |
begin camera singletestcamera |
| 158 |
look direction = -1 -1 -1 |
| 159 |
end |
| 160 |
begin imageset fooImageset |
| 161 |
camera = singletestcamera |
| 162 |
operation = fooOperation |
| 163 |
image size = 800 450 |
| 164 |
end imageset |
| 165 |
end |
| 166 |
)"; |
| 167 |
|
| 168 |
std::string OperationClipPlaneThreePoints1 = R"( |
| 169 |
begin catalyst |
| 170 |
begin extractblock eb1 |
| 171 |
include blocks = block_1 |
| 172 |
end |
| 173 |
begin clip fooOperation |
| 174 |
#input = clipNone |
| 175 |
input = eb1 |
| 176 |
plane specification = three points |
| 177 |
data point on plane A = max scalar VON_MISES eb1 |
| 178 |
data point on plane B = min scalar VON_MISES eb1 |
| 179 |
relative point on plane C = 0.0 10.0 0.0 |
| 180 |
side to keep = negative |
| 181 |
end clip |
| 182 |
begin clip clipop2 |
| 183 |
plane specification = three points |
| 184 |
data point on plane A = max scalar VON_MISES eb1 |
| 185 |
relative point on plane B = 0.0 0.0 10.0 |
| 186 |
relative point on plane C = 0.0 10.0 0.0 |
| 187 |
end |
| 188 |
begin camera singletestcamera |
| 189 |
#look direction = -1 -1 -1 |
| 190 |
camera at absolute point = 15 10 10 |
| 191 |
look at absolute point = 5 0 0 |
| 192 |
end |
| 193 |
begin imageset fooImageset |
| 194 |
camera = singletestcamera |
| 195 |
operation = fooOperation |
| 196 |
image size = 800 450 |
| 197 |
show edges = true |
| 198 |
color by scalar = VON_MISES |
| 199 |
end imageset |
| 200 |
begin imageset is2 |
| 201 |
camera = singletestcamera |
| 202 |
operation = clipop2 |
| 203 |
image size = 800 450 |
| 204 |
show edges = true |
| 205 |
color by scalar = VON_MISES |
| 206 |
end imageset |
| 207 |
begin imageset is3 |
| 208 |
camera = singletestcamera |
| 209 |
image size = 800 450 |
| 210 |
show edges = true |
| 211 |
color by scalar = VON_MISES |
| 212 |
end imageset |
| 213 |
end |
| 214 |
)"; |
| 215 |
|
| 216 |
#endif /* __OPERATIONS_VALID_TESTS_H */ |