3030
3131namespace tmd
3232{
33- /* ========================================== DEFINITIONS ========================================== */
33+ /* ========================================== DECLARATIONS ========================================== */
3434 // Small vector 3D class class
3535 template <typename FLOAT>
3636 class Vec3r
@@ -66,7 +66,7 @@ namespace tmd
6666 using Vec3d = Vec3r<double >;
6767 // -----------------------------------
6868
69- // Point-Triangle distance definitions
69+ // Point-Triangle distance declarations
7070 enum class NearestEntity { V0, V1, V2, E01 , E12 , E02 , F };
7171 static double point_triangle_sq_unsigned (NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2);
7272 // -----------------------------------
@@ -88,7 +88,7 @@ namespace tmd
8888 class TriangleMeshDistance
8989 {
9090 private:
91- /* Definitions */
91+ /* Private declarations */
9292 struct BoundingSphere
9393 {
9494 Vec3d center;
@@ -110,7 +110,7 @@ namespace tmd
110110 };
111111
112112
113- /* Fields */
113+ /* Private fields */
114114 std::vector<Vec3d> vertices;
115115 std::vector<std::array<int , 3 >> triangles;
116116 std::vector<Node> nodes;
@@ -120,14 +120,14 @@ namespace tmd
120120 BoundingSphere root_bv;
121121 bool is_constructed = false ;
122122
123- /* Methods */
123+ /* Private methods */
124124 void _construct ();
125125 void _build_tree (const int node_id, BoundingSphere& bounding_sphere, std::vector<Triangle> &triangles, const int begin, const int end);
126126 void _query (Result &result, const Node &node, const Vec3d& point) const ;
127127
128128 public:
129129
130- /* Methods */
130+ /* Public methods */
131131 TriangleMeshDistance () = default ;
132132
133133 /* *
@@ -197,7 +197,7 @@ namespace tmd
197197
198198
199199
200- /* ========================================== DECLARATIONS ========================================== */
200+ /* ========================================== DEFINITIONS ========================================== */
201201template <typename FLOAT, typename INT, typename SIZE_T>
202202inline tmd::TriangleMeshDistance::TriangleMeshDistance (const FLOAT* vertices, const SIZE_T n_vertices, const INT* triangles, const SIZE_T n_triangles)
203203{
0 commit comments