mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-18 12:57:40 -05:00
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>
25 lines
869 B
C#
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; }
|
|
}
|
|
}
|