How To Install opencsg on CentOS 7

In this tutorial we learn how to install opencsg on CentOS 7. opencsg is Library for Constructive Solid Geometry using OpenGL

Introduction

In this tutorial we learn how to install opencsg on CentOS 7.

What is opencsg

OpenCSG is a library that does image-based CSG rendering using OpenGL. CSG is short for Constructive Solid Geometry and denotes an approach to model complex 3D-shapes using simpler ones. I.e., two shapes can be combined by taking the union of them, by intersecting them, or by subtracting one shape of the other. The most basic shapes, which are not result of such a CSG operation, are called primitives. Primitives must be solid, i.e., they must have a clearly defined interior and exterior. By construction, a CSG shape is also solid then. Image-based CSG rendering (also z-buffer CSG rendering) is a term that denotes algorithms for rendering CSG shapes without an explicit calculation of the geometric boundary of a CSG shape. Such algorithms use frame-buffer settings of the graphics hardware, e.g., the depth and stencil buffer, to compose CSG shapes. OpenCSG implements a variety of those algorithms, namely the Goldfeather algorithm and the SCS algorithm, both of them in several variants.

We can use yum or dnf to install opencsg on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install opencsg.

Install opencsg on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install opencsg using yum by running the following command:

sudo yum -y install opencsg

Install opencsg on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install opencsg using dnf by running the following command:

sudo dnf -y install opencsg

How To Uninstall opencsg on CentOS 7

To uninstall only the opencsg package we can use the following command:

sudo dnf remove opencsg

References

Summary

In this tutorial we learn how to install opencsg on CentOS 7 using yum and dnf.