Category Archives: Fade2.5D Examples

Cut and Fill Volumes in C++

Cut And Fill (Wikipedia) Earthwork volume computations for C++. The library module Cut And Fill takes two overlapping surfaces and computes the volume between. The result is a set of volumes where soil must be filled or where material must be digged off to turn one surface into the other one. Example Source Code The […]

Read More

Segment Checker for Segment Intersections

Given a set of line segments, the fast C++ class Segment Checker detects if any two segments intersect. Intersection points (or segments in the collinear case) are computed. Segment Checker accepts 2D and 2.5D segments and it copes with glancing segment intersections. With the example source code below you can integrate it into your software […]

Read More

Advanced Delaunay Meshing

Delaunay meshing inside polygons has already been introduced in Example6 – Mesh Generator. The present article describes advanced Delaunay meshing for users who want full control over the mesh generation process. The provided example source code advancedMeshing.cpp is a Fade2.5D example but works also along with Fade2D. The initial zone The source code snippet below […]

Read More

2.5D Terrain Triangulation (TIN)

Create/Read a Surface Point Cloud Create random surface points. Alternatively points can be read from an ASCII file. Optional Point Cloud Pruning As an optional step the point cloud is pruned in order to represent the TIN more efficiently. This is achieved by a call to EfficientModel::extract(double maxError, …). Thereby maxError specifies the allowed height […]

Read More

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.