Skip to content

Commit b73b912

Browse files
authored
made header function static
1 parent 3fced94 commit b73b912

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TriangleMeshDistance/include/tmd/TriangleMeshDistance.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
The MIT License (MIT)
33
4-
Copyright (c) 2021 José Antonio Fernández Fernández
4+
Copyright (c) 2021 José Antonio Fernández Fernández
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -68,7 +68,7 @@ namespace tmd
6868

6969
// Point-Triangle distance definitions
7070
enum class NearestEntity { V0, V1, V2, E01, E12, E02, F };
71-
double point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2);
71+
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
// -----------------------------------
7373

7474
// Struct that contains the result of a distance query
@@ -524,7 +524,7 @@ inline void tmd::TriangleMeshDistance::_query(Result& result, const Node& node,
524524
}
525525
}
526526

527-
double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2)
527+
static double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2)
528528
{
529529
Vec3d diff = v0 - point;
530530
Vec3d edge0 = v1 - v0;

0 commit comments

Comments
 (0)