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

Reading the terrain points When using Visual Studio please run all examples in a command line window, not in a VS debug window. This example starts with a simple ASCII file reader for xyz data: Three numbers per line, whitespace-separated. Triangulate the Terrain Points The code below creates a new 2.5D triangulation. Then is reads […]

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.