template<typename DerivedV, typename DerivedF>
class igl::CombLine< DerivedV, DerivedF >
template<typename DerivedV , typename DerivedF >
72 {
74
75 Eigen::VectorXi mark = Eigen::VectorXi::Constant(
F.
rows(),
false);
76
78
80 mark(0) = true;
81
83 {
86 for (int k=0; k<3; k++)
87 {
89 if (f1==-1) continue;
90 if (mark(f1)) continue;
91
96
98 dir0Rot.normalize();
100
101 PD1out.row(f1) = targD;
102
103
104 mark(f1) = true;
106
107 }
108 }
109
110
111 for (
int i=0; i<
F.
rows(); i++)
112 {
113 assert(mark(i));
114 }
115 }
The matrix class, also used for vectors and row-vectors.
Definition Matrix.h:180
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Index rows() const
Definition PlainObjectBase.h:151
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
Definition CwiseNullaryOp.h:515
static Eigen::Matrix< typename DerivedV::Scalar, 3, 1 > K_PI_line(const Eigen::Matrix< typename DerivedV::Scalar, 3, 1 > &a, const Eigen::Matrix< typename DerivedV::Scalar, 3, 1 > &b)
Definition comb_line_field.cpp:46
IGL_INLINE Eigen::Matrix< Scalar, 3, 3 > rotation_matrix_from_directions(const Eigen::Matrix< Scalar, 3, 1 > v0, const Eigen::Matrix< Scalar, 3, 1 > v1)
Definition rotation_matrix_from_directions.cpp:14
References igl::CombLine< DerivedV, DerivedF >::F, igl::CombLine< DerivedV, DerivedF >::K_PI_line(), igl::CombLine< DerivedV, DerivedF >::N, igl::CombLine< DerivedV, DerivedF >::PD1, igl::rotation_matrix_from_directions(), Eigen::PlainObjectBase< Derived >::rows(), Eigen::PlainObjectBase< Derived >::setZero(), and igl::CombLine< DerivedV, DerivedF >::TT.
Referenced by igl::comb_line_field().