Questions tagged [libigl]

libigl is a C++11 library for geometry processing, computer graphics, linear algebra and optimization.

libigl is a C++ library for geometry processing, computer graphics, linear algebra and optimization.

Libigl covers a large set of features through a function-based interface. It is intended as a fast prototyping library for geometry processing, with an interface familiar to Python and MATLAB users. Here is a quick and incomplete overview:

  • Discrete differential geometry quantities and operators (e.g., cotangent Laplacian matrix, discrete curvature)
  • Quadratic energy optimization, quadratic programming solver
  • Mesh deformation
    • bounded biharmonic weights
    • as-rigid-as-possible shape deformation
    • dual quaternion linear blend skinning
  • Mesh parameterization
    • Least squares conformal maps
    • N-Rotationally symmetric tangent fields
    • Global, seamless integer-grid parametrization
  • Robust geometry processing
    • Constructive Solid Geometry operations on meshes (boolean union, intersection)
    • Generalized winding number
    • Mesh Decimation

Libigl depends heavily on Eigen for core linear algebra operations.

Find more on the libigl homepage and tutorial

31 questions
1
vote
3 answers

How to perform Boolean operation on thin surface using libigl?

I am currently working on libigl, and trying to grab the part of the a surface which locates inside another body. However, it seems than libigl only works with closed bodies: Here is the code which works for closed bodies. VA,VF is a triangular…
Wesley Ranger
  • 770
  • 1
  • 7
  • 26
1
vote
3 answers

How to build 102 example of libigl tutorial in Visual C++?

I am currently using Visual C++ 10.0(2010) on a win7 32bit OS. When I tried to build the basic examples of libigl github tutorials: libigl tutorials The following installation code works fine: #include #include…
LCFactorization
  • 1,652
  • 1
  • 25
  • 35
0
votes
0 answers

How to draw jet type colorbar with Dear imgui library and libigl library?

class ColorbarPlugin { public: void draw_colorbar(igl::ColorMapType cm, float xmin, float xmax) const; }; // Draws the actual colorbar with min/max values void ColorbarPlugin::draw_colorbar(igl::ColorMapType cm, float xmin, float xmax) const { …
silong
  • 1
0
votes
1 answer

Libigl Tutorial Example 102 WINDOWS Visual Studio Code with Build Tools (integrated CMake and compiler cl.exe)

I am using Visual Studio 2022 and its build tools in Windows. In particular, I use Visual Studio with x64 Native Tools Command Prompt for VS 2022 to open VS and use its integrated CMake and compiler cl.exe. I downloaded libigl from the github…
Mvg
  • 1
  • 2
0
votes
0 answers

After `libigl` update to ver 2.4.0 I can't build anymore

My CMakeLists.txt file for my old libigl testing project contains the piece below: project(libigl) set(LIBIGL_HOME $ENV{HOME}/apps/libigl) set(CMAKE_PREFIX_PATH ${LIBIGL_HOME}) set(CMAKE_MODULE_PATH…
HEKTO
  • 3,876
  • 2
  • 24
  • 45
0
votes
1 answer

Input facet components contain degenerate triangles

I'm calling IGL trim_with_solid like this: #include // Input Eigen::MatrixX3f m_VA; Eigen::MatrixX3i m_FA; Eigen::MatrixX3f m_VB; Eigen::MatrixX3i m_FB; // Output Eigen::MatrixX3f m_V; Eigen::MatrixX3i…
Megidd
  • 7,089
  • 6
  • 65
  • 142
0
votes
0 answers

Change rotation matrix of a rectangle from center to corner

I'm trying to rotate a rectangle around one of its corners, but I'm only able to do it around the center. I'm using Eigen together with libigl. My code: // rectangle to rotate so as to be aligned to Y axis MatrixXd V; V.resize(24, 3); V…
Kabu
  • 519
  • 6
  • 16
0
votes
1 answer

Error installing a .pro file, with Eigen, libigl dependencies on Debian

Im trying to install a .pro file using 'make' on Debian-9. The dependencies are Qt5, GSL, libigl, Eigen and Boost, which their latest versions are installed. I used the following: # cd build # qmake -qt=qt5 ../qt/myfile.pro # make And here is the…
RTn Saberpour
  • 53
  • 1
  • 1
  • 5
0
votes
1 answer

How to clean up this Emily mesh to prepare for tetgen?

I had asked this question before but on github here , but never got farther into it. Now I have picked it up, and am trying to get this mesh tetrahedralized, but I keep getting errors see below. Ahlthough the statement clearly says "Found a segment…
0
votes
0 answers

How do I properly use LibIGL's AABB.signed_distance() function?

I'm trying to use LibIgl to get the squared distance from a point to the mesh. Here's a code snippet I'm trying to run: // load a mesh std::ifstream fileStream; std::string filePath = R"(C:\path\to\stl\1x1x1Cube.stl)"; Eigen::MatrixXd Vs; …
Justin
  • 1,881
  • 4
  • 20
  • 40
0
votes
1 answer

CGAL hole filling with color

I need to implement a 3D hole filling using CGAL library that support color. is there any possibility to do it without CGAL library modification? I need to fill the hole with an average color of the hole's edge. Regards, Ali .... int main(int…
Vision
  • 35
  • 2
  • 7
0
votes
2 answers

Libigl example 102 testing error

I tried to use the libigl on Ubuntu 16.4, but I faced some errors when building the example 102. First, I installed the Eigen locating in /usr/local/include/Eigen/. Then, I downloaded the libigl code following this command: git clone --recursive…
Allens
  • 11
  • 2
0
votes
1 answer

Dynamic number of GUI sliders which update an std::vector with values in callbacks

I'm trying to add a dynamic number of sliders to a GUI window, and update an std::vector with the values according to how each slider changes. The GUI library uses callbacks and I can successfully do it for one slider (or when copy&pasting…
Ela782
  • 5,041
  • 5
  • 53
  • 66
-1
votes
1 answer

I use Cmake to make project, but it called error when generating : Target "xxxxxxx" links to: igl::core , but the target was not found

Configuring done CMake Error at CMakeLists.txt:5 (target_link_libraries): Target "101_GlyphRendering_bin" links to: igl::core but the target was not found. Possible reasons include: * There is a typo in the target name. * A…
-1
votes
1 answer

Trying to remove outside faces from mesh with ambient occlusion | raytracing

I've combined multiple stl files to one big mesh and I'm now trying to remove all faces that are on the inside. I got a hint to use ambient occlusion and remove all faces that are below a certain brightness threshold. So I started using libigl which…
Fliens
  • 19
  • 1
  • 7