mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-09-08 11:52:39 +02:00
Fixing dep build script on Windows and removing some warnings. Use bundled igl by default. Not building with the dependency scripts if not explicitly stated. This way, it will stay in Fix the libigl patch to include C source files in header only mode.
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
// This file is part of libigl, a simple c++ geometry processing library.
|
|
//
|
|
// Copyright (C) 2016 Alec Jacobson <alecjacobson@gmail.com>
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public License
|
|
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
|
// obtain one at http://mozilla.org/MPL/2.0/.
|
|
#ifndef IGL_COPYLEFT_CGAL_POINT_TRIANGLE_SQUARED_DISTANCE_H
|
|
#define IGL_COPYLEFT_CGAL_POINT_TRIANGLE_SQUARED_DISTANCE_H
|
|
#include "../../igl_inline.h"
|
|
#include <CGAL/Triangle_3.h>
|
|
#include <CGAL/Point_3.h>
|
|
namespace igl
|
|
{
|
|
namespace copyleft
|
|
{
|
|
namespace cgal
|
|
{
|
|
// Given a point P1 and triangle T2 find the points on each of closest
|
|
// approach and the squared distance thereof.
|
|
//
|
|
// Inputs:
|
|
// P1 point
|
|
// T2 triangle
|
|
// Outputs:
|
|
// P2 point on T2 closest to P1
|
|
// d distance betwee P1 and T2
|
|
template < typename Kernel>
|
|
IGL_INLINE void point_triangle_squared_distance(
|
|
const CGAL::Point_3<Kernel> & P1,
|
|
const CGAL::Triangle_3<Kernel> & T2,
|
|
CGAL::Point_3<Kernel> & P2,
|
|
typename Kernel::FT & d
|
|
);
|
|
|
|
}
|
|
}
|
|
}
|
|
#ifndef IGL_STATIC_LIBRARY
|
|
# include "point_triangle_squared_distance.cpp"
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|