cgalmesh command not found

In this troubleshooting guide we learn how to fix cgalmesh command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cgalmesh: command not found

or when using sudo you get the following error message

sudo: cgalmesh: command not found

Solutions to cgalmesh: command not found

How To Fix cgalmesh: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cgalmesh is provided by iso2mesh-tools package.

iso2mesh-tools is:

This package contains 3D mesh generation and repairing tools that can be used independently and invoked inside iso2mesh.

These tools include cgalmesh (3D mesh generation from volumetric images), cgalpoly (3D mesh generation from polyhedral surfaces), cgalsimp2 (triangular surface simplification), meshfix (3D surface cleaning and repairing), and jmeshlib (3D surface cleaning).

To fix this problem, we can install more using the command below.

sudo apt-get -y install iso2mesh-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install iso2mesh-tools.

sudo apt -y install iso2mesh-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install iso2mesh-tools

Summary

In this tutorial we learn how to fix cgalmesh command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.