CPLtransrelCPL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-05, Last change: 2025-09-15
relative transformation of CPLs
Description
Similar to SGtransrelSG, but based on CPLs!
Supported operations are:
bottom,under,down, ontop,up,top, left, right, trans,transP,
transx, transy, mirrory, centerx, centery, incenter,center,
alignright, alignleft, aligntop, alignbottom, alignunder,
magnify, transT, alignrot, alignaxis, attached,touch,
plus,add,+, intersect, subtract,-, sub, xor, cutleft,
remainleft, cutright, isecbb,intersectbb, cutbb,subbb,
grow, break,breakedge, rad,radial,radialedge, rotc,
rot,rotz, debug, help,info,?'
See Also: SGtransrelSG
, PLtrans
Example Illustration
Syntax
CPL=CPLtransrelCPL(CPLA,CPLB,[rel,gap])
Input Parameter
CPLA: | | Original contour to manipulate |
CPLB: | | Contour that is considered as relation |
rel: | | relation term such as 'ontop' or 'alignleft' |
gap: | | optional numerical parameter |
Output Parameter
Examples
CPLA=PLsquare(20,30); CPLB=PLcircle(8)+[pi pi];
CPLtransrelCPL(CPLA,CPLB,'center','ontop','rot',pi/10,'rad',20);
Copyright 2021-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