CPLAnycubicPredator

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.0, Creation date: 2020-12-31, Last change: 2025-08-18

Creates the CPL for the Anycubic Z-Level testing solid

Description

The original Anycubic Z-Level testing solid for the Predator/Delta-robot is available only as gcode

See Also: SGsample4APredator

Example Illustration

 missing image of CPLAnycubicPredator

Syntax

CPL=CPLAnycubicPredator

Output Parameter

CPL: CPL of the contour of SGsample4APredator

Examples

Simply type
CPLAnycubicPredator




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

Algorithm (Workflow)

This algorithm generates a Closed Polygon List (CPL) for the Anycubic Predator Z-Level testing solid. The function does not take any input parameters and outputs a CPL representing the contour of the testing solid.

Parameters and Variables

Algorithm Steps

  1. Initialize the diameters array Do and calculate the radii Ro by dividing each element of Do by 2.
  2. Initialize an empty array CPL to store the polygon data.
  3. Iterate over each radius in Ro:
  4. Remove the last NaN separator from CPL.
  5. Union the current CPL with a square polygon generated by PLsquare(max(Do)-B/2, B).
  6. Union the current CPL with another square polygon generated by PLsquare(B, max(Do)-B/2).
  7. Union the current CPL with a circle polygon generated by PLcircle(min(Ro)).
  8. If no output argument is specified, plot the CPL using SGfigure and CPLplot functions.
Algorithm explaination created using ChatGPT on 2025-08-18 23:56. (Please note: No guarantee for the correctness of this explanation)

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