libigl v2.5.0
Loading...
Searching...
No Matches
quad_grid.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) 2019 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_QUAD_GRID_H
9#define IGL_QUAD_GRID_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13
14namespace igl
15{
16 // Generate a quad mesh over a regular grid.
17 //
18 // @param[in] nx number of vertices in the x direction
19 // @param[in] ny number of vertices in the y direction
20 // @param[out] V nx*ny by 2 list of vertex positions
21 // @param[out] Q (nx-1)*(ny-1) by 4 list of quad indices into V
22 // @param[out] E (nx-1)*ny+(ny-1)*nx by 2 list of undirected quad edge indices into V
23 //
24 // \see grid, triangulated_grid
25 template<
26 typename DerivedV,
27 typename DerivedQ,
28 typename DerivedE>
30 const int nx,
31 const int ny,
32 Eigen::PlainObjectBase<DerivedV> & V,
33 Eigen::PlainObjectBase<DerivedQ> & Q,
34 Eigen::PlainObjectBase<DerivedE> & E);
36 template<
37 typename DerivedQ,
38 typename DerivedE>
40 const int nx,
41 const int ny,
42 Eigen::PlainObjectBase<DerivedQ> & Q,
43 Eigen::PlainObjectBase<DerivedE> & E);
44}
45
46#ifndef IGL_STATIC_LIBRARY
47# include "quad_grid.cpp"
48#endif
49#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void quad_grid(const int nx, const int ny, Eigen::PlainObjectBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedQ > &Q, Eigen::PlainObjectBase< DerivedE > &E)