Wildmeshing Toolkit
Loading...
Searching...
No Matches
manifold_extraction_spec.hpp
1#pragma once
2#include <nlohmann/json.hpp>
3namespace {
4
5nlohmann::json manifold_extraction_spec = R"(
6[
7 {
8 "pointer": "/",
9 "type": "object",
10 "required": [
11 "application",
12 "input"
13 ],
14 "optional": [
15 "output",
16 "in_tag",
17 "manifold_union",
18 "replace_tag",
19 "DEBUG_output",
20 "write_surface"
21 ]
22 },
23 {
24 "pointer": "/application",
25 "type": "string",
26 "options": [
27 "manifold_extraction"
28 ],
29 "doc": "Application name must be manifold_extraction."
30 },
31 {
32 "pointer": "/input",
33 "type": "string",
34 "doc": "Tetrahedral input mesh."
35 },
36 {
37 "pointer": "/output",
38 "type": "string",
39 "default": "out",
40 "doc": "Output file name (without extension)."
41 },
42 {
43 "pointer": "/in_tag",
44 "type": "list",
45 "default": ["tag_0"],
46 "min": 1,
47 "doc": "Tag set to considered inside the surface (empty for ambient)."
48 },
49 {
50 "pointer": "/in_tag/*",
51 "type": "string",
52 "doc": "A tag."
53 },
54 {
55 "pointer": "/manifold_union",
56 "type": "bool",
57 "default": true,
58 "doc": "If true, offsets are unioned with mesh, otherwise subtracted from mesh."
59 },
60 {
61 "pointer": "/replace_tag",
62 "type": "list",
63 "default": [],
64 "doc": "Only relevant for subtract mode (manifold_union=false). Tag set to fill subtracted regions with. Empty for ambient."
65 },
66 {
67 "pointer": "/replace_tag/*",
68 "type": "string",
69 "doc": "A tag."
70 },
71 {
72 "pointer": "/DEBUG_output",
73 "type": "bool",
74 "default": false,
75 "doc": "Write the tet mesh as out_{}.vtu after every operation."
76 },
77 {
78 "pointer": "/write_surface",
79 "type": "bool",
80 "default": false,
81 "doc": "Write the output surface (OBJ) after manifold extraction."
82 }
83]
84)"_json;
85
86}