DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="4.1.0-beta3030" />

 Edge

public class Edge : DesignScriptEntity
using Autodesk.DesignScript.Interfaces; using Autodesk.DesignScript.Runtime; using System.Collections.Generic; using System.Linq; namespace Autodesk.DesignScript.Geometry { public class Edge : DesignScriptEntity { internal IEdgeEntity EdgeEntity => HostImpl as IEdgeEntity; public Curve CurveGeometry => Curve.Wrap(EdgeEntity.get_CurveGeometry()); public Face[] AdjacentFaces => Track(Face.Wrap(EdgeEntity.get_AdjacentFaces())); public Vertex StartVertex => Track(Vertex.Wrap(EdgeEntity.get_StartVertex())); public Vertex EndVertex => Track(Vertex.Wrap(EdgeEntity.get_EndVertex())); [IsVisibleInDynamoLibrary(false)] public CoEdge[] CoEdges { get { return CoEdge.Wrap(EdgeEntity.get_CoEdges()); } } internal Edge(IEdgeEntity host) : base(host) { } public override string ToString() { return "Edge(StartVertex = " + StartVertex?.ToString() + ", EndVertex = " + EndVertex?.ToString() + ")"; } internal static Edge Wrap(IEdgeEntity host) { if (host == null) return null; return new Edge(host); } internal static Edge[] Wrap(IEdgeEntity[] hosts) { return (from x in hosts select Wrap(x)).ToArray(); } internal static Edge[][] Wrap(IEdgeEntity[][] hosts) { return (from x in hosts select Wrap(x)).ToArray(); } internal static IEdgeEntity[][] Unwrap(Edge[][] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IEdgeEntity[] Unwrap(Edge[] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IEdgeEntity[] Unwrap(IEnumerable<Edge> o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IEdgeEntity Unwrap(Edge o) { return o.EdgeEntity; } } }