libigl v2.5.0
Loading...
Searching...
No Matches
round_cone_signed_distance.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2025 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_ROUND_CONE_SIGNED_DISTANCE_H
9#define IGL_ROUND_CONE_SIGNED_DISTANCE_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12
13namespace igl
14{
23 template <
24 typename Derivedp,
25 typename Deriveda,
26 typename Derivedb>
27 IGL_INLINE typename Derivedp::Scalar round_cone_signed_distance(
28 const Eigen::MatrixBase<Derivedp> & p,
29 const Eigen::MatrixBase<Deriveda> & a,
30 const Eigen::MatrixBase<Derivedb> & b,
31 const typename Derivedp::Scalar & r1,
32 const typename Derivedp::Scalar & r2);
33
47 template <
48 typename Derivedp,
49 typename Deriveda,
50 typename Derivedba>
51 IGL_INLINE typename Derivedp::Scalar round_cone_signed_distance(
52 const Eigen::MatrixBase<Derivedp> & p,
53 const Eigen::MatrixBase<Deriveda> & a,
54 const typename Derivedp::Scalar & r1,
55 const typename Derivedp::Scalar & r2,
56 const Eigen::MatrixBase<Derivedba> & ba,
57 const typename Derivedp::Scalar & l2,
58 const typename Derivedp::Scalar & rr,
59 const typename Derivedp::Scalar & a2,
60 const typename Derivedp::Scalar & il2);
61}
62
63#ifndef IGL_STATIC_LIBRARY
64# include "round_cone_signed_distance.cpp"
65#endif
66#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
Derivedp::Scalar round_cone_signed_distance(const Eigen::MatrixBase< Derivedp > &p, const Eigen::MatrixBase< Deriveda > &a, const Eigen::MatrixBase< Derivedb > &b, const typename Derivedp::Scalar &r1, const typename Derivedp::Scalar &r2)
Compute signed distance to a round cone (sphere-mesh capsule).