Loading files
// Copyright (c) IxMilia. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using IxMilia.Step.Syntax;
namespace IxMilia.Step.Items
{
public abstract class StepEdge : StepTopologicalRepresentationItem
{
public StepVertex EdgeStart { get; set; }
public StepVertex EdgeEnd { get; set; }
protected StepEdge()
: base(string.Empty)
{
}
protected StepEdge(string name, StepVertex edgeStart, StepVertex edgeEnd)
: base(name)
{
EdgeStart = edgeStart;
EdgeEnd = edgeEnd;
}
internal override IEnumerable<StepRepresentationItem> GetReferencedItems()
{
if (EdgeStart != null)
{
yield return EdgeStart;
}
if (EdgeEnd != null)
{
yield return EdgeEnd;
}
}
internal override IEnumerable<StepSyntax> GetParameters(StepWriter writer)
{
foreach (var parameter in base.GetParameters(writer))
{
yield return parameter;
}
yield return writer.GetItemSyntaxOrAuto(EdgeStart);
yield return writer.GetItemSyntaxOrAuto(EdgeEnd);
}
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.