GCC Code Coverage Report


Directory: ./
File: src/hfield.cpp
Date: 2025-04-01 09:23:31
Exec Total Coverage
Lines: 4 16 25.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Software License Agreement (BSD License)
3 *
4 * Copyright (c) 2021, INRIA
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 * * Neither the name of Open Source Robotics Foundation nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 */
34
35 /** \author Justin Carpentier */
36
37 #include "coal/hfield.h"
38
39 #include "coal/BV/BV.h"
40 #include "coal/shape/convex.h"
41
42 #include "coal/internal/BV_splitter.h"
43 #include "coal/internal/BV_fitter.h"
44
45 #include <iostream>
46 #include <string.h>
47
48 namespace coal {
49
50 template <>
51 2040 NODE_TYPE HeightField<AABB>::getNodeType() const {
52 2040 return HF_AABB;
53 }
54
55 template <>
56 NODE_TYPE HeightField<OBB>::getNodeType() const {
57 return BV_UNKNOWN; // HF_OBB;
58 }
59
60 template <>
61 NODE_TYPE HeightField<RSS>::getNodeType() const {
62 return BV_UNKNOWN; // HF_RSS;
63 }
64
65 template <>
66 NODE_TYPE HeightField<kIOS>::getNodeType() const {
67 return BV_UNKNOWN; // BV_kIOS;
68 }
69
70 template <>
71 15 NODE_TYPE HeightField<OBBRSS>::getNodeType() const {
72 15 return HF_OBBRSS;
73 }
74
75 template <>
76 NODE_TYPE HeightField<KDOP<16> >::getNodeType() const {
77 return BV_UNKNOWN; // BV_KDOP16;
78 }
79
80 template <>
81 NODE_TYPE HeightField<KDOP<18> >::getNodeType() const {
82 return BV_UNKNOWN; // BV_KDOP18;
83 }
84
85 template <>
86 NODE_TYPE HeightField<KDOP<24> >::getNodeType() const {
87 return BV_UNKNOWN; // BV_KDOP24;
88 }
89
90 // template class HeightField<KDOP<16> >;
91 // template class HeightField<KDOP<18> >;
92 // template class HeightField<KDOP<24> >;
93 template class HeightField<OBB>;
94 template class HeightField<AABB>;
95 template class HeightField<RSS>;
96 // template class HeightField<kIOS>;
97 template class HeightField<OBBRSS>;
98
99 } // namespace coal
100