CPLN=CPLsimplify(CPL)
CPL : | CPL |
CPLN : | 'repaired' or 'simplified' CPL with keep colinear points |
CPLsimplify(PLsample(14))
This function, CPLsimplify
, is designed to simplify a Closed Polygon List (CPL) using MATLAB's polyshape
function. It is part of the SolidGeometry library and was created to maintain independence from MathWorks' updates.
CPL
is empty. If it is, return an empty array CPLN
.polyshape
simplification process using warning('off',...)
.polyshape
object from the CPL
coordinates with the 'simplify'
option set to true
. This step simplifies the polygon by removing unnecessary vertices.warning('on',...)
.polyshape
back to a CPL format using the CPLofpolyshape
function.SGfigure
and plot
functions, and annotate it with CVLplot
and textCVL
.The function was introduced in SolidGeometry version 4.8 and is part of a suite of tools for handling polygonal data. It is designed to handle collinear points in a way that is consistent with the library's requirements.
Algorithm explaination created using ChatGPT on 2025-08-19 01:26. (Please note: No guarantee for the correctness of this explanation)