Category Archives: Fade2D Examples

Example6 – Mesh Generation

Example6 – Mesh Generation Fade provides a Delaunay mesh generator to create high quality triangular meshes in a polygonal area. The present article covers the straightforward refine() method. Users who need detailed control over the mesh generation process may also have a look at the article Advanced Mesh Generator. Preparing the initial situation The code […]

Read More

Example5 – Zone Operations

Example5 – Boolean operations with zones Zones (polygonal areas in a triangulation) can be combined through the boolean operations Union Intersection Difference Symmetric Difference Preparing the initial situation We start similarly as in example4 creating two polygons (ConstraintGraph2 objects). But this time the constraint graphs pCG1 and pCG2 do intersect each other. Below the intersecting […]

Read More

Example4 – Zones

Example4 – Zones, defined areas in triangulations Zones are among the most powerful concepts in Fade. A zone defines an area in a triangulation. Zones can be combined using boolean set operations such as union and difference, a quality mesh can be constructed inside a zone and the triangles of a zone can be extracted. […]

Read More

Example3 – Constraint Edges

Create a simple Delaunay triangulation Inserting constraint edges And now assume that we want to enforce an edge from the lower left to the upper right corner. There are two different insertion strategies: Code for Constrained Delaunay We prepare a vector of one or more constraint segments and call createConstraint() using the constraint insertion strategy […]

Read More

Example2 – Traversing

Example2 – Traversing Lern how to access specific elements of your triangulation like triangles, their neighbors, opposite points and so on. During development it is extremely helpful to visualize geometric situations. In this example we will go over a triangulation, retrieve its elements and draw them. Create input points and set an index We start […]

Read More

Example1 – Benchmark

Example1 – Benchmark This second example program measures the performance of Fade2D on your computer. 1 Million Points on a Core i7 6800K This Delaunay triangulation benchmark has been run on one core of a desktop computer (Core i7 6800K). One million points (2 million triangles) take 0.42 seconds. Huge Datasets – Up to 100 […]

Read More

Example0 – Hello Triangulation

Getting Started with Fade Fade comes as two separate libraries, Fade2D and Fade2.5D. Due to a common code base they are very similar to use. The difference is that the 2.5D version offers a z-coordinate and additional functionality. To make it easy to get started with Fade, a collection of small example source codes is […]

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.

Close