#include #include #include #include #include #include #include #include Eigen::VectorXi Seams; // Cuts Eigen::VectorXi C; // Singularities Eigen::VectorXd S; // Cross field Eigen::MatrixXd X; Eigen::MatrixXd X2; // Create a texture that hides the integer translation in the parametrization void line_texture(Eigen::Matrix &texture_R, Eigen::Matrix &texture_G, Eigen::Matrix &texture_B) { unsigned size = 128; unsigned size2 = size/2; unsigned lineWidth = 3; texture_R.setConstant(size, size, 255); for (unsigned i=0; i texture_R, texture_G, texture_B; line_texture(texture_R, texture_G, texture_B); viewer.set_texture(texture_R, texture_B, texture_G); // Increase the thickness of the lines viewer.options.line_width = 2.0f; // Launch the viewer viewer.launch(); }