Skip to content

Hatch explode#1105

Open
DomCR wants to merge 5 commits into
masterfrom
hatch-explode
Open

Hatch explode#1105
DomCR wants to merge 5 commits into
masterfrom
hatch-explode

Conversation

@DomCR
Copy link
Copy Markdown
Owner

@DomCR DomCR commented Jun 4, 2026

Description

Short description about this PR

Tasks done in this PR

  • Something awesome.
  • An evil bug have been defeated.
  • Code cleanup and maintenance has been done.

Related Issues / Pull Requests

  • Add the links of issues or PR related to this one.

Notes for reviewer

  • Things to consider during the review of this PR.

DomCR added 5 commits June 1, 2026 20:59
Updated namespaces for consistency and organization. Refactored `HatchTests.cs` to improve readability and added new test cases for `Hatch` functionality. Enhanced `Hatch.cs` with new properties and methods, including `Explode`, `ApplyTransform`, and `GetBoundingBox`. Simplified `HatchStyleType` enum and added logic in `LocalSampleTests.cs` to handle `Hatch` pattern explosion. Removed redundant code and improved maintainability.
Refactor BoundaryPath and edge classes to support intersection detection with Line2D, bounding box calculations, and entity conversion. Improve HatchPattern line geometry, pattern file I/O, and transformation logic. Update Hatch.ExplodePattern to use new intersection logic. Modernize code and update CSMath submodule for geometric operations.
Refactored the ExplodePattern method in the Hatch class to generate line entities between intersection pairs of pattern lines and boundaries, replacing the previous approach of adding circles at intersections. Utilized modern C# syntax and improved intersection handling. In LocalSampleTests, set all exploded entities' color to red before adding to the document. Added necessary using directives for geometry and LINQ support.
Improved XML docs for Explode methods, refactored emitDashedSegment to use Line2D, removed unused helpers, and clarified dash pattern logic. Moved GetBoundingBox to a public override. Updated CSUtilities submodule reference.
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.

1 participant