libigl v2.5.0
Loading...
Searching...
No Matches
cut_mesh.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 Hanxiao Shen <hanxiao@cims.nyu.edu>
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_CUT_MESH_H
9#define IGL_CUT_MESH_H
10#include "igl_inline.h"
11
12#include <Eigen/Core>
13
14namespace igl
15{
36 template <typename DerivedV, typename DerivedF, typename DerivedC, typename DerivedI>
38 Eigen::PlainObjectBase<DerivedV>& V,
39 Eigen::PlainObjectBase<DerivedF>& F,
40 const Eigen::MatrixBase<DerivedC>& cuts,
41 Eigen::PlainObjectBase<DerivedI>& I
42 );
55 template <typename DerivedV, typename DerivedF, typename DerivedFF, typename DerivedFFi, typename DerivedC, typename DerivedI>
57 Eigen::PlainObjectBase<DerivedV>& V,
58 Eigen::PlainObjectBase<DerivedF>& F,
59 Eigen::MatrixBase<DerivedFF>& FF,
60 Eigen::MatrixBase<DerivedFFi>& FFi,
61 const Eigen::MatrixBase<DerivedC>& C,
62 Eigen::PlainObjectBase<DerivedI>& I
63 );
64
76 template <typename DerivedV, typename DerivedF, typename DerivedC>
78 const Eigen::MatrixBase<DerivedV>& V,
79 const Eigen::MatrixBase<DerivedF>& F,
80 const Eigen::MatrixBase<DerivedC>& cuts,
81 Eigen::PlainObjectBase<DerivedV>& Vn,
82 Eigen::PlainObjectBase<DerivedF>& Fn
83 );
84
101 template <
102 typename DerivedV,
103 typename DerivedF,
104 typename DerivedC,
105 typename DerivedVn,
106 typename DerivedFn,
107 typename DerivedI>
109 const Eigen::MatrixBase<DerivedV>& V,
110 const Eigen::MatrixBase<DerivedF>& F,
111 const Eigen::MatrixBase<DerivedC>& cuts,
112 Eigen::PlainObjectBase<DerivedVn>& Vn,
113 Eigen::PlainObjectBase<DerivedFn>& Fn,
114 Eigen::PlainObjectBase<DerivedI>& I);
115
116
117
118}
119
120
121#ifndef IGL_STATIC_LIBRARY
122#include "cut_mesh.cpp"
123#endif
124
125
126#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void cut_mesh(Eigen::PlainObjectBase< DerivedV > &V, Eigen::PlainObjectBase< DerivedF > &F, const Eigen::MatrixBase< DerivedC > &cuts, Eigen::PlainObjectBase< DerivedI > &I)
Given a mesh and a list of edges that are to be cut, the function generates a new disk-topology mesh ...