Files
OpenNest/OpenNest.Core/Shapes/ShapeSideView.cs
T
ajandClaude Opus 5.5 587613ff89 feat(shapes): add angle, channel and rolled plate to the Shape Library
Each makes the flat blank of a part bent or rolled along its length,
sized with the bend allowance at the K-factor. Angle and channel bends
are saved on the drawing as 90 degree up bends and etched as an
imported DXF's up bends are. The preview draws each part's section
beside the blank, dimensioned with the formed sizes; a long part's
section is enlarged so it stays readable. K-factor is a plain number,
not a length, in the form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:28:58 -05:00

25 lines
869 B
C#

using System.Collections.Generic;
using OpenNest.Geometry;
namespace OpenNest.Shapes
{
/// <summary>
/// A sheet metal part's cross-section, which the Shape Library draws beside the flat blank with
/// its own dimensions. Annotation only: it never affects the drawing.
/// </summary>
public sealed class ShapeSideView
{
public ShapeSideView(IReadOnlyList<Entity> entities, IReadOnlyList<ShapeDimension> dimensions)
{
Entities = entities;
Dimensions = dimensions;
}
/// <summary>The section's closed outlines, in the view's own coordinates.</summary>
public IReadOnlyList<Entity> Entities { get; }
/// <summary>The section's dimensions, in the same coordinates as <see cref="Entities"/>.</summary>
public IReadOnlyList<ShapeDimension> Dimensions { get; }
}
}