Skip to content

Striped Segments Generation Functions#109

Merged
SoloByte merged 13 commits intomainfrom
striped-points-generation-functions
Nov 5, 2025
Merged

Striped Segments Generation Functions#109
SoloByte merged 13 commits intomainfrom
striped-points-generation-functions

Conversation

@SoloByte
Copy link
Collaborator

@SoloByte SoloByte commented Nov 5, 2025

I have added functions to generate striped Segments for Circle, Triangle, Rect, Quad, and Polygon. Additionally, I have added functions to generate striped Segments for inside and outside shapes.

@SoloByte SoloByte added this to the 5.0 milestone Nov 5, 2025
@SoloByte SoloByte self-assigned this Nov 5, 2025
@SoloByte SoloByte added the improvement Improvement of existing code. label Nov 5, 2025
@SoloByte SoloByte requested a review from Copilot November 5, 2025 12:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds methods to generate striped segment patterns for various geometric shapes, complementing the existing drawing methods. The changes introduce a data generation layer that returns Segments collections, which can then be drawn or further manipulated.

  • Adds GenerateStripedSegments methods for Circle, Triangle, Rectangle, Quad, Polygon, and Ring shapes
  • Introduces helper methods to draw generated segments with alternating styles
  • Refactors a boolean check for consistency

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
StripedDrawing.cs Adds core helper methods for drawing generated segments and a generic dispatcher method for segment generation
StripedDrawingCircle.cs Implements striped segment generation for circles with constant and curve-based spacing
StripedDrawingTriangle.cs Implements striped segment generation for triangles, including boolean style refactor
StripedDrawingRect.cs Implements striped segment generation for rectangles with commented code cleanup
StripedDrawingQuad.cs Implements striped segment generation for quads
StripedDrawingPolygon.cs Implements striped segment generation for polygons
StripedDrawingRing.cs Implements radial striped segment generation for rings and ring sectors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SoloByte and others added 4 commits November 5, 2025 15:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Refactor: StripedDrawing GenerateStripedSegments generic version now correctly uses Rect instead of Rectangle.
@SoloByte SoloByte merged commit 9896d33 into main Nov 5, 2025
7 checks passed
@SoloByte SoloByte deleted the striped-points-generation-functions branch November 5, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement of existing code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants