This file is indexed.

/usr/include/libwildmagic/Wm5Triangles.h is in libwildmagic-dev 5.13-1ubuntu3.

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
// Geometric Tools, LLC
// Copyright (c) 1998-2014
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.1 (2010/10/01)

#ifndef WM5TRIANGLES_H
#define WM5TRIANGLES_H

#include "Wm5GraphicsLIB.h"
#include "Wm5Visual.h"
#include "Wm5Float2.h"
#include "Wm5APoint.h"
#include "Wm5VertexBufferAccessor.h"

namespace Wm5
{

class WM5_GRAPHICS_ITEM Triangles : public Visual
{
    WM5_DECLARE_RTTI;
    WM5_DECLARE_NAMES;
    WM5_DECLARE_STREAM(Triangles);

protected:
    // Abstract base class.  Construction and destruction.
    Triangles (PrimitiveType type = PT_TRIANGLES);
    Triangles (PrimitiveType type, VertexFormat* vformat,
        VertexBuffer* vbuffer, IndexBuffer* ibuffer);
public:
    virtual ~Triangles ();

    // These functions depend on the interpretation of the index buffer of
    // the triangle primitive.  The triangle <V0,V1,V2> is counterclockwise
    // order.  It is required that the vertex buffer have 3-tuple positions.
    virtual int GetNumTriangles () const = 0;
    virtual bool GetTriangle (int i, int& v0, int& v1, int& v2) const = 0;
    bool GetModelTriangle (int i, APoint* modelTriangle) const;
    bool GetWorldTriangle (int i, APoint* worldTriangle) const;

    // Support for bounding-tree-based collision detection.  The input index
    // 'v' must be contained in the index buffer.
    inline int GetNumVertices () const;
    inline const Transform& GetWorldTransform () const;
    Float3 GetPosition (int v) const;

    // Geometric updates.  See the comments in Wm5Visual.h about the
    // input parameter.
    virtual void UpdateModelSpace (UpdateType type);

private:
    // Support for the geometric update.
    void UpdateModelNormals (VertexBufferAccessor& vba);

    // Specialized updates for the tangent space.
    void UpdateModelTangentsUseGeometry (VertexBufferAccessor& vba);
    void UpdateModelTangentsUseTCoords (VertexBufferAccessor& vba);

    // This function is used by UpdateUseTCoord to compute a tangent vector at
    // position0.  The triangle has positions position0, position1, and
    // position2, listed in counterclockwise order.  The corresponding texture
    // coordinates are tcoord0, tcoord1, and tcoord2, and are those associated
    // with the texture coordinate 'channel' that was passed to
    // UpdateUseTCoord.
    static AVector ComputeTangent (
        const APoint& position0, const Float2& tcoord0,
        const APoint& position1, const Float2& tcoord1,
        const APoint& position2, const Float2& tcoord2);
};

WM5_REGISTER_STREAM(Triangles);
typedef Pointer0<Triangles> TrianglesPtr;
#include "Wm5Triangles.inl"

}

#endif