CPLtransform

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 4.9.1, Creation date: 2020-08-26, Last change: 2025-09-14

finds contours inbetween two sets of CPLs => CVLof2CPLzcorrelate

Description

written in Grindelwald, CH
Each transformed contour is returned as cell list element in a ccw orientation.
Subsequent functions such as XXXX can therefore rotate the contour to match the embedding index CCL of the CPLcorrelate function. In any case, the contours still have to be checked for overlapping.
Most probabli you look for CVLof2CPLzcorrelate

See Also: CPLcorrelate , PLtransform , CVLof2CPLzcorrelate

Example Illustration

 missing image of CPLtransform(CPLA,CPLB,corall,zmm)

Syntax

[CPLt,CLL,MCA,MCB]=CPLtransform(CPLA,CPLB,[corall,zmm])

Input Parameter

CPLA: Contour A
CPLB: Contour A
corall: if true all contours are correlated not only pairs
zmm: desired perecntage of transformation 0=CPLA 1= CPLB

Output Parameter

CPLt: Final set of conturs wrt to CCL
CLL: CCL = Result of CPLcorrelate
MCA: Missing contours in A - No possibility to use
MCB: Missing contours in B - No possibility to use

Examples


CPLA=CPLcopypattern(PLcircle(10),[4 1],[25])-[10 0]; CPLB=PLcircle(10);
CPLtransform(PLA,PLB,true)
CVLof2CPLzcorrelate(PLA,PLB,[10 3])




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21