forked from tudelft3d/val3dity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiSolid.h
66 lines (49 loc) · 1.76 KB
/
MultiSolid.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
/*
val3dity
Copyright (c) 2011-2017, 3D geoinformation research group, TU Delft
This file is part of val3dity.
val3dity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
val3dity is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with val3dity. If not, see <http://www.gnu.org/licenses/>.
For any information or further details about the use of val3dity, contact
Hugo Ledoux
Faculty of Architecture & the Built Environment
Delft University of Technology
Julianalaan 134, Delft 2628BL, the Netherlands
*/
#ifndef MultiSolid_h
#define MultiSolid_h
#include "Primitive.h"
#include "Solid.h"
#include <string>
#include <vector>
namespace val3dity
{
class MultiSolid : public Primitive
{
public:
MultiSolid(std::string id = "");
~MultiSolid();
bool validate(double tol_planarity_d2p, double tol_planarity_normals, double tol_overlap = -1);
int is_valid();
bool is_empty();
json get_report_json();
Primitive3D get_type();
std::set<int> get_unique_error_codes();
void get_min_bbox(double& x, double& y);
void translate_vertices();
bool add_solid(Solid* s);
int number_of_solids();
protected:
std::vector<Solid*> _lsSolids;
};
} // namespace val3dity
#endif /* CompositeSolid_h */