FUNCTION REFERENCE
csgdel
Delete borders between minimal regions of a decomposed geometry.
Delete borders between minimal regions of a decomposed geometry.
Syntax
[dl2,bt2] = csgdel(dl,bt); [dl2,bt2] = csgdel(dl,bt,bl)Without bl every border with a region on both sides is removed; regions joined by removed borders become one region and are renumbered. bl lists dl columns to remove; a listed column that borders the outside is an error, and borders that end up with the same region on both sides are removed too. bt2(i,j) is true when any part of region i was inside shape j.
Example
gd=[3 3;4 4;0 1;2 3;2 3;0 1;0 0.5;0 0.5;1 1.5;1 1.5]; [dl,bt]=decsg(gd,'R1+R2',['R1';'R2']'); [dl2,bt2]=csgdel(dl,bt); size(dl2)Differences from MATLAB: line pieces and arc pieces that become consecutive on one boundary stay split at their old junction points.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.