Skip to content

The Geometry Objects

Justin edited this page Feb 25, 2022 · 2 revisions

This page refers to objects found in the CGALDotNet.Geometry namespace.

CGALDotNet provides a collection of shapes that implement some basic operations and are used to pass data to CGAL. These shapes differ from the shapes found in the CGALDotNetGeometry project in that these shapes are objects and are implemented as generics that can accept a numerical kernel like EIK or EEK.

Below is a example of creating a box object with the EIK kernel.

//create a new box
var box = new Box2<EIK>(-1, 1);

All objects created this way are wrappers for a CGAL object. As such they can be less efficient than the shape structs but the can hold onto their data and be passed around to the CGAL layer without losing any precision by having to have their values converted to doubles.