Polygon Clipping: Boolean Set Operations Fade provides polygon clipping and functions to combine shapes through the following Boolean operations: You can find the C++ source code for this demo in examples_2D/ex5_booleanOps.cpp in the download package. Note: The term “polygon clipping” in this context refers to the Boolean operations, such as calculating the intersection of two…Continue readingPolygon Clipping: Boolean Operations – Example 5
Tag: Boolean Operations
Implementing Boolean operations on Polygons with Holes can be challenging. Therefore, in the present example, examples_2D/ex6_booleanOps2.cpp, you’ll find C++ source code already prepared to handle arbitrary shapes, whether they are convex or non-convex, with or without holes. Feel free to use this code in your project. Additionally, it’s advisable to review the previous Example 5.…Continue readingPractical Boolean Operations on Polygons with Holes – Example 6
The focus here is on merging: Two point clouds with different properties may overlap and need to be combined. Alternatively, you might need to merge triangulated objects with point clouds, such as a road with a terrain point cloud. This article presents practical solutions for merging triangulations and point clouds in 2.5D. The C++ source…Continue readingMerging Triangulations and Point Clouds
Just like the previous article, this one focuses on the C++ example of merging. In this part, we describe the function demo3_mergeShapes(), which explains how to merge two triangulations. You pass two zones to the function: one is the higher-priority triangulation, while the other has just base priority. The higher-priority triangulation remains intact, and we…Continue readingMerging Two Triangulations