This file is indexed.

/usr/include/bullet/HACD/hacdGraph.h is in libbullet-extras-dev 2.83.6+dfsg-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* Copyright (c) 2011 Khaled Mamou (kmamou at gmail dot com)
 All rights reserved.
 
 
 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
 
 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 
 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
 
 3. The names of the contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
 
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
#pragma once
#ifndef HACD_GRAPH_H
#define HACD_GRAPH_H
#include "hacdVersion.h"
#include "hacdVector.h"
#include "hacdICHull.h"
#include <map>
#include <vector>
#include <set>

namespace HACD
{
    class GraphVertex;
    class GraphEdge;
    class Graph;
	class HACD;
       
    class GraphVertex  
    {
    public:
        bool                                    AddEdge(long name) 
												{ 
													m_edges.insert(name); 
													return true; 
												}
        bool                                    DeleteEdge(long name);        
                                                GraphVertex();
                                                ~GraphVertex(){ delete m_convexHull;};      
    private:
        long                                    m_name;
        long                                    m_cc;
        std::set<long>                          m_edges;
        bool                                    m_deleted;
        std::vector<long>	                    m_ancestors;
		std::map<long, DPoint>					m_distPoints;

        Real                                    m_error;
        double                                  m_surf;
		double                                  m_volume;
        double                                  m_perimeter;
        double                                  m_concavity;
        ICHull *                                m_convexHull;
		std::set<unsigned long long>			m_boudaryEdges;
        

        friend class GraphEdge;
        friend class Graph;
		friend class HACD;
    };
    
	class GraphEdge 
    {
    public:
                                                GraphEdge();
                                                ~GraphEdge(){delete m_convexHull;};
    private:
        long                                    m_name;
        long                                    m_v1;
        long                                    m_v2;
		std::map<long, DPoint>					m_distPoints;
        Real                                    m_error;
        double                                  m_surf;
		double                                  m_volume;
        double                                  m_perimeter;
        double                                  m_concavity;
        ICHull *                                m_convexHull;
		std::set<unsigned long long>			m_boudaryEdges;
        bool                                    m_deleted;
		

        
        friend class GraphVertex;
        friend class Graph;
		friend class HACD;
    };
    
    class Graph  
    {
    public:
		size_t									GetNEdges() const { return m_nE;}
		size_t									GetNVertices() const { return m_nV;}
        bool                                    EdgeCollapse(long v1, long v2);
        long                                    AddVertex();
        long                                    AddEdge(long v1, long v2);
        bool                                    DeleteEdge(long name);	
        bool                                    DeleteVertex(long name);
        long                                    GetEdgeID(long v1, long v2) const;
		void									Clear();
        void                                    Print() const;
        long                                    ExtractCCs();
        
                                                Graph();
        virtual                                 ~Graph();      
		void									Allocate(size_t nV, size_t nE);

    private:
        size_t                                  m_nCCs;
        size_t                                  m_nV;
        size_t                                  m_nE;
        std::vector<GraphEdge>                  m_edges;
        std::vector<GraphVertex>                m_vertices;

		friend class HACD;
    };
}
#endif