DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="1.1.0" />

 CoEdge

public class CoEdge : DesignScriptEntity
using Autodesk.DesignScript.Interfaces; using Autodesk.DesignScript.Runtime; using System.Collections.Generic; using System.Linq; namespace Autodesk.DesignScript.Geometry { [IsVisibleInDynamoLibrary(false)] public class CoEdge : DesignScriptEntity { internal ICoEdgeEntity CoEdgeEntity => HostImpl as ICoEdgeEntity; public CoEdge Previous => Wrap(CoEdgeEntity.get_Previous(), true); public CoEdge Next => Wrap(CoEdgeEntity.get_Next(), true); public CoEdge Partner => Wrap(CoEdgeEntity.get_Partner(), true); public Edge Edge => Edge.Wrap(CoEdgeEntity.get_Edge(), true); public Loop Loop => Loop.Wrap(CoEdgeEntity.get_Loop(), true); public Vertex StartVertex => Vertex.Wrap(CoEdgeEntity.get_StartVertex(), true); public Vertex EndVertex => Vertex.Wrap(CoEdgeEntity.get_EndVertex(), true); public bool Reversed => CoEdgeEntity.get_Reversed(); internal CoEdge(ICoEdgeEntity host, bool persist) : base(host, persist) { } public override string ToString() { return "CoEdge(StartVertex = " + StartVertex + ", EndVertex = " + EndVertex + ", Reversed = " + Reversed.ToString() + ")"; } internal static CoEdge Wrap(ICoEdgeEntity host, bool persist = true) { if (host == null) return null; return new CoEdge(host, persist); } internal static CoEdge[] Wrap(ICoEdgeEntity[] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static CoEdge[][] Wrap(ICoEdgeEntity[][] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static ICoEdgeEntity[][] Unwrap(CoEdge[][] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity[] Unwrap(CoEdge[] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity[] Unwrap(IEnumerable<CoEdge> o) { return (from x in o select Unwrap(x)).ToArray(); } internal static ICoEdgeEntity Unwrap(CoEdge o) { return o.CoEdgeEntity; } } }