DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

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

 TSplineVertex

public class TSplineVertex : Vertex
using Autodesk.DesignScript.Interfaces; using Autodesk.DesignScript.Runtime; using ProtoGeometryGenerator; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Autodesk.DesignScript.Geometry.TSpline { [GenerateFromInterface(typeof(ITSplineVertexEntity), typeof(IGeometryFactory), new Type[] { })] public class TSplineVertex : Vertex { internal ITSplineVertexEntity TSplineVertexEntity => HostImpl as ITSplineVertexEntity; [IsVisibleInDynamoLibrary(false)] public new TSplineEdge[] AdjacentEdges { get { return TSplineEdge.Wrap(TSplineVertexEntity.get_AdjacentEdges()); } } [IsVisibleInDynamoLibrary(false)] public new TSplineFace[] AdjacentFaces { get { return TSplineFace.Wrap(TSplineVertexEntity.get_AdjacentFaces()); } } public TSplineUVNFrame UVNFrame => TSplineUVNFrame.Wrap(TSplineVertexEntity.get_UVNFrame()); public int Index => TSplineVertexEntity.get_Index(); public bool IsStarPoint => TSplineVertexEntity.get_IsStarPoint(); public bool IsTPoint => TSplineVertexEntity.get_IsTPoint(); public bool IsManifold => TSplineVertexEntity.get_IsManifold(); public int Valence => TSplineVertexEntity.get_Valence(); public int FunctionalValence => TSplineVertexEntity.get_FunctionalValence(); internal TSplineVertex(ITSplineVertexEntity host) : base(host) { } [MultiReturn(new string[] { "uvnFrame", "index", "isStarPoint", "isTPoint", "isManifold", "valence", "functionalValence" })] public Dictionary<string, object> Info() { Dictionary<string, object> dictionary = new Dictionary<string, object>(); Dictionary<string, object> dictionary2 = TSplineVertexEntity.Info(); foreach (KeyValuePair<string, object> item in dictionary2) { string key = item.Key; if (key == "uvnFrame") dictionary[item.Key] = TSplineUVNFrame.Wrap(item.Value as ITSplineUVNFrameEntity); else dictionary[item.Key] = item.Value; } return dictionary; } internal static TSplineVertex Wrap(ITSplineVertexEntity host) { if (host != null) return new TSplineVertex(host); return null; } internal static TSplineVertex[] Wrap(ITSplineVertexEntity[] hosts) { return hosts.Select(Wrap).ToArray(); } internal static TSplineVertex[][] Wrap(ITSplineVertexEntity[][] hosts) { return hosts.Select(Wrap).ToArray(); } internal static ITSplineVertexEntity Unwrap(TSplineVertex o) { return o.TSplineVertexEntity; } internal static ITSplineVertexEntity[] Unwrap(IEnumerable<TSplineVertex> o) { return o.Select(Unwrap).ToArray(); } internal static ITSplineVertexEntity[] Unwrap(TSplineVertex[] o) { return o.Select(Unwrap).ToArray(); } internal static ITSplineVertexEntity[][] Unwrap(TSplineVertex[][] o) { return o.Select(Unwrap).ToArray(); } public override string ToString() { StringBuilder builder = DesignScriptEntity.GetBuilder(); AppendTo(builder); return builder.ToString(); } internal override void AppendTo(StringBuilder builder) { builder.Add("TSplineVertex(Index = ", Index).Add(", IsStarPoint = ", IsStarPoint).Add(", IsTPoint = ", IsTPoint) .Add(", IsManifold = ", IsManifold) .Add(", Valence = ", Valence) .Append(")"); } } }