Skip to content

Commit a86056b

Browse files
committed
2 parents e5d2d54 + 98e2fcd commit a86056b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ std::cout << "Nearest triangle index: " << result.triangle_id << std::endl;
3434
## Projects using TriangleMeshDistance
3535
3636
- [Discregrid](https://github.com/InteractiveComputerGraphics/Discregrid) - A static C++ library for the generation of discrete functions on a box-shaped domain. This is especially suited for the discretization of signed distance fields.
37-
- [PBD](https://github.com/InteractiveComputerGraphics/PositionBasedDynamics) - A C++ library for physically-based simulation of rigid bodies, deformables, cloth and fluids using Position-Based Dynamics
38-
- [SPlisHSPlasH](https://github.com/InteractiveComputerGraphics/SPlisHSPlasH) - A C++ library for the physically-based simulation of fluids using Smoothed Particle Hydrodynamics (cf. video) (Coming soon)
37+
- [PBD](https://github.com/InteractiveComputerGraphics/PositionBasedDynamics) - A C++ library for physically-based simulation of rigid bodies, deformables, cloth and fluids using Position-Based Dynamics.
38+
- [SPlisHSPlasH](https://github.com/InteractiveComputerGraphics/SPlisHSPlasH) - A C++ library for the physically-based simulation of fluids using Smoothed Particle Hydrodynamics.

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
@@ -542,7 +542,7 @@ inline void tmd::TriangleMeshDistance::_query(Result& result, const Node& node,
542542
}
543543
}
544544

545-
double tmd::point_triangle_sq_unsigned(NearestEntity& nearest_entity, Vec3d& nearest_point, const Vec3d& point, const Vec3d& v0, const Vec3d& v1, const Vec3d& v2)
545+
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)
546546
{
547547
Vec3d diff = v0 - point;
548548
Vec3d edge0 = v1 - v0;

0 commit comments

Comments
 (0)