CPLhatch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-20, Last change: 2025-09-15

creates a hatch for a CPL

Description

Completely Modified 2.1.2023 to support all angles and have angle independent slot distance

See Also: CPLplothatched , CPLradialhatch , CPLhatchgridofCPL

Example Illustration

 missing image of CPLhatch(CPL,d,al,co)

Syntax

[CPLI,CPLS,mm,d]=CPLhatch(CPL,[d,al,co])

Input Parameter

CPL: CPL
d: thickness and distance as multiple
al: angle in degree; default is 60 degree
co: contours to select

Output Parameter

CPLI: CPL of hatch by intersection => Thin lines=> Thin hatch
CPLS: CPL of hatch by subtraction => Thin lines=> Thick hatch
mm: center point
d: thickness and distance as multiple

Examples


CPLhatch(CPLsample(14)+[123 23],[.1 1],80);
CPLhatch(CPLsample(20)+[123 23],'',10);
CPLhatch(CPLsample(14)+[123 23],.4,45);
CPLhatch(CPLsample(14)+[123 23],.4,10,[0 1; 1 2]);
CPLhatch(CPLsample(14)+[123 23],.4,45,[2 3]);




Copyright 2022-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