libigl v2.5.0
Loading...
Searching...
No Matches
unique_sparse_voxel_corners.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_UNIQUE_SPARSE_VOXEL_CORNERS_H
9#define IGL_UNIQUE_SPARSE_VOXEL_CORNERS_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13
14namespace igl
15{
26 template<
27 typename Derivedijk,
28 typename Derivedunique_ijk,
29 typename DerivedJ
30 >
32 const int depth,
33 const Eigen::MatrixBase<Derivedijk> & ijk,
34 Eigen::PlainObjectBase<Derivedunique_ijk> & unique_ijk,
35 Eigen::PlainObjectBase<DerivedJ> & J);
36
44 template<
45 typename Derivedorigin,
46 typename Derivedijk,
47 typename Derivedunique_ijk,
48 typename DerivedJ,
49 typename Derivedunique_corners
50 >
52 const Eigen::MatrixBase<Derivedorigin> & origin,
53 const typename Derivedorigin::Scalar h0,
54 const int depth,
55 const Eigen::MatrixBase<Derivedijk> & ijk,
56 Eigen::PlainObjectBase<Derivedunique_ijk> & unique_ijk,
57 Eigen::PlainObjectBase<DerivedJ> & J,
58 Eigen::PlainObjectBase<Derivedunique_corners> & unique_corners);
59}
60
61#ifndef IGL_STATIC_LIBRARY
62# include "unique_sparse_voxel_corners.cpp"
63#endif
64#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void unique_sparse_voxel_corners(const int depth, const Eigen::MatrixBase< Derivedijk > &ijk, Eigen::PlainObjectBase< Derivedunique_ijk > &unique_ijk, Eigen::PlainObjectBase< DerivedJ > &J)
Give a list of octree cells subscripts (ijk) (minimum corners) at a given depth, determine a unique l...