libigl v2.5.0
Loading...
Searching...
No Matches
box_faces.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_BOX_FACES_H
9#define IGL_BOX_FACES_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12#include <Eigen/Geometry>
13
14namespace igl
15{
23 template <typename DerivedV, typename DerivedQ>
25 const Eigen::AlignedBox<typename DerivedV::Scalar,3> & box,
26 const typename DerivedV::Scalar shrink,
27 Eigen::PlainObjectBase<DerivedV> & P,
28 Eigen::PlainObjectBase<DerivedQ> & Q);
29 // Forward declaration
30 template <typename DerivedV, int DIM> class AABB;
37 template <
38 typename DerivedV,
39 typename DerivedP,
40 typename DerivedQ,
41 typename DerivedD >
43 const igl::AABB<DerivedV,3> & tree,
44 Eigen::PlainObjectBase<DerivedP> & P,
45 Eigen::PlainObjectBase<DerivedQ> & Q,
46 Eigen::PlainObjectBase<DerivedD> & D);
47}
48
49#ifndef IGL_STATIC_LIBRARY
50# include "box_faces.cpp"
51#endif
52
53#endif
Implementation of semi-general purpose axis-aligned bounding box hierarchy.
Definition AABB.h:31
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void box_faces(const Eigen::AlignedBox< typename DerivedV::Scalar, 3 > &box, const typename DerivedV::Scalar shrink, Eigen::PlainObjectBase< DerivedV > &P, Eigen::PlainObjectBase< DerivedQ > &Q)
Compute the quad faces of an axis-aligned bounding box) shrunk by a given factor.