TSplineEdge
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(ITSplineEdgeEntity), typeof(IGeometryFactory), new Type[] {
})]
public class TSplineEdge : Edge
{
internal ITSplineEdgeEntity TSplineEdgeEntity => HostImpl as ITSplineEdgeEntity;
[IsVisibleInDynamoLibrary(false)]
public new TSplineFace[] AdjacentFaces {
get {
return TSplineFace.Wrap(TSplineEdgeEntity.get_AdjacentFaces());
}
}
[IsVisibleInDynamoLibrary(false)]
public new TSplineVertex StartVertex {
get {
return TSplineVertex.Wrap(TSplineEdgeEntity.get_StartVertex());
}
}
[IsVisibleInDynamoLibrary(false)]
public new TSplineVertex EndVertex {
get {
return TSplineVertex.Wrap(TSplineEdgeEntity.get_EndVertex());
}
}
public TSplineUVNFrame UVNFrame => TSplineUVNFrame.Wrap(TSplineEdgeEntity.get_UVNFrame());
public int Index => TSplineEdgeEntity.get_Index();
public bool IsBorder => TSplineEdgeEntity.get_IsBorder();
public bool IsManifold => TSplineEdgeEntity.get_IsManifold();
internal TSplineEdge(ITSplineEdgeEntity host)
: base(host)
{
}
[MultiReturn(new string[] {
"uvnFrame",
"index",
"isBorder",
"isManifold"
})]
public Dictionary<string, object> Info()
{
Dictionary<string, object> dictionary = new Dictionary<string, object>();
Dictionary<string, object> dictionary2 = TSplineEdgeEntity.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 TSplineEdge Wrap(ITSplineEdgeEntity host)
{
if (host != null)
return new TSplineEdge(host);
return null;
}
internal static TSplineEdge[] Wrap(ITSplineEdgeEntity[] hosts)
{
return hosts.Select(Wrap).ToArray();
}
internal static TSplineEdge[][] Wrap(ITSplineEdgeEntity[][] hosts)
{
return hosts.Select(Wrap).ToArray();
}
internal static ITSplineEdgeEntity Unwrap(TSplineEdge o)
{
return o.TSplineEdgeEntity;
}
internal static ITSplineEdgeEntity[] Unwrap(IEnumerable<TSplineEdge> o)
{
return o.Select(Unwrap).ToArray();
}
internal static ITSplineEdgeEntity[] Unwrap(TSplineEdge[] o)
{
return o.Select(Unwrap).ToArray();
}
internal static ITSplineEdgeEntity[][] Unwrap(TSplineEdge[][] 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("TSplineEdge(Index = ", Index).Add(", IsBorder = ", IsBorder).Add(", IsManifold = ", IsManifold)
.Append(")");
}
}
}