libigl v2.5.0
Loading...
Searching...
No Matches
eytzinger_aabb_sdf.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_EYTZINGER_AABB_SDF_H
9#define IGL_EYTZINGER_AABB_SDF_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12
13namespace igl
14{
29 template <
30 bool Squared,
31 typename Derivedp,
32 typename Func,
33 typename DerivedB,
34 typename Derivedleaf
35 >
37 const Eigen::MatrixBase<Derivedp> & p,
38 const Func & primitive,
39 const Eigen::MatrixBase<DerivedB> & B1,
40 const Eigen::MatrixBase<DerivedB> & B2,
41 const Eigen::MatrixBase<Derivedleaf> & leaf,
42 typename Derivedp::Scalar & f);
43
53 template <
54 bool Squared,
55 typename DerivedP,
56 typename Func,
57 typename DerivedB,
58 typename Derivedleaf,
59 typename DerivedS
60 >
62 const Eigen::MatrixBase<DerivedP> & P,
63 const Func & primitive,
64 const Eigen::MatrixBase<DerivedB> & B1,
65 const Eigen::MatrixBase<DerivedB> & B2,
66 const Eigen::MatrixBase<Derivedleaf> & leaf,
67 Eigen::PlainObjectBase<DerivedS> & S);
68}
69
70#ifndef IGL_STATIC_LIBRARY
71# include "eytzinger_aabb_sdf.cpp"
72#endif
73#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void eytzinger_aabb_sdf(const Eigen::MatrixBase< Derivedp > &p, const Func &primitive, const Eigen::MatrixBase< DerivedB > &B1, const Eigen::MatrixBase< DerivedB > &B2, const Eigen::MatrixBase< Derivedleaf > &leaf, typename Derivedp::Scalar &f)