How To Install opencsg on Fedora 34

opencsg is Library for Constructive Solid Geometry using OpenGL Library for Constructive Solid Geometry using OpenGL

Introduction

In this tutorial we learn how to install opencsg on Fedora 34.

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. opencsg 1.4.2 13.fc34 x86_64 221 k opencsg-1.4.2-13.fc34.src.rpm fedora Library for Constructive Solid Geometry using OpenGL http GPLv2 with exceptions 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install opencsg.

Install opencsg on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install opencsg

Install opencsg on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install opencsg

How To Uninstall opencsg on Fedora 34

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

sudo dnf remove opencsg

opencsg Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/6920830c9488d8af4f0d9c0eefcc94542057c8
/usr/lib/libopencsg.so.1
/usr/lib/libopencsg.so.1.4
/usr/lib/libopencsg.so.1.4.2
/usr/share/doc/opencsg
/usr/share/doc/opencsg/changelog.txt
/usr/share/doc/opencsg/doc
/usr/share/doc/opencsg/doc/img
/usr/share/doc/opencsg/doc/img/columns.gif
/usr/share/doc/opencsg/doc/img/conc.gif
/usr/share/doc/opencsg/doc/img/diss.gif
/usr/share/doc/opencsg/doc/img/diss.jpg
/usr/share/doc/opencsg/doc/img/drivetrain.gif
/usr/share/doc/opencsg/doc/img/drivetrain.png
/usr/share/doc/opencsg/doc/img/grid.gif
/usr/share/doc/opencsg/doc/img/ibvfi.png
/usr/share/doc/opencsg/doc/img/logo.gif
/usr/share/doc/opencsg/doc/img/ogl.gif
/usr/share/doc/opencsg/doc/img/opencsglogo.gif
/usr/share/doc/opencsg/doc/img/openscad.png
/usr/share/doc/opencsg/doc/index.html
/usr/share/doc/opencsg/doc/news.html
/usr/share/doc/opencsg/doc/publications.html
/usr/share/doc/opencsg/license.txt
/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/51dd3d2b693f055d9f199b1869039d852f1c64
/usr/lib64/libopencsg.so.1
/usr/lib64/libopencsg.so.1.4
/usr/lib64/libopencsg.so.1.4.2
/usr/share/doc/opencsg
/usr/share/doc/opencsg/changelog.txt
/usr/share/doc/opencsg/doc
/usr/share/doc/opencsg/doc/img
/usr/share/doc/opencsg/doc/img/columns.gif
/usr/share/doc/opencsg/doc/img/conc.gif
/usr/share/doc/opencsg/doc/img/diss.gif
/usr/share/doc/opencsg/doc/img/diss.jpg
/usr/share/doc/opencsg/doc/img/drivetrain.gif
/usr/share/doc/opencsg/doc/img/drivetrain.png
/usr/share/doc/opencsg/doc/img/grid.gif
/usr/share/doc/opencsg/doc/img/ibvfi.png
/usr/share/doc/opencsg/doc/img/logo.gif
/usr/share/doc/opencsg/doc/img/ogl.gif
/usr/share/doc/opencsg/doc/img/opencsglogo.gif
/usr/share/doc/opencsg/doc/img/openscad.png
/usr/share/doc/opencsg/doc/index.html
/usr/share/doc/opencsg/doc/news.html
/usr/share/doc/opencsg/doc/publications.html
/usr/share/doc/opencsg/license.txt

References

Summary

In this tutorial we learn how to install opencsg on Fedora 34 using yum and dnf.