Skip to content

Conversation

@amatulic
Copy link
Contributor

@amatulic amatulic commented Jun 30, 2025

Changes to paths.scad:

  • Added new function reduce_path() to complement subdivide_path() and resample_path(). The reduce_path() function simplifies a path by removing points that don't contribute to dominant features; useful for simplifiying coastlines and fractal paths with too many points.
  • Added a newline before each assert() message.
  • Minor grammar / spelling tweaks.

Changes to math.scad:

  • Improved random_polygon() to accept a size range instead of a single size, to make more reasonable looking polygons. Backward compatible with original version.
  • Added slerp() - spherical lerp() on a great-circle arc.
  • Added slerpn() - spherical lerpn() on a great-circle arc.
  • Added newlines before assert messages that I missed last time I updated this file.

@amatulic amatulic changed the title Added reduce_path(), minor wordsmithing of docs Added reduce_path(), slerp(), slerpn(), improved random_polygon(), minor wordsmithing of docs Jun 30, 2025
@amatulic amatulic marked this pull request as ready for review July 16, 2025 00:19
@amatulic amatulic changed the title Added reduce_path(), slerp(), slerpn(), improved random_polygon(), minor wordsmithing of docs Added simplify_path(), slerp(), slerpn(), improved random_polygon(), minor wordsmithing of docs Jul 17, 2025
@adrianVmariano
Copy link
Collaborator

Is this ready for merge?

@adrianVmariano adrianVmariano merged commit 520b1c7 into BelfrySCAD:master Jul 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants