TSplineUVNFrame
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(ITSplineUVNFrameEntity), typeof(IGeometryFactory), new Type[] {
})]
public class TSplineUVNFrame : DesignScriptEntity
{
internal ITSplineUVNFrameEntity TSplineUVNFrameEntity => HostImpl as ITSplineUVNFrameEntity;
public Point Position => Point.Wrap(TSplineUVNFrameEntity.get_Position());
[Scaling()]
public Vector U {
get {
return Vector.Wrap(TSplineUVNFrameEntity.get_U().Scale(1 / DesignScriptEntity.scaleFactor));
}
}
[Scaling()]
public Vector V {
get {
return Vector.Wrap(TSplineUVNFrameEntity.get_V().Scale(1 / DesignScriptEntity.scaleFactor));
}
}
[Scaling()]
public Vector Normal {
get {
return Vector.Wrap(TSplineUVNFrameEntity.get_Normal().Scale(1 / DesignScriptEntity.scaleFactor));
}
}
internal TSplineUVNFrame(ITSplineUVNFrameEntity host)
: base(host)
{
}
internal static TSplineUVNFrame Wrap(ITSplineUVNFrameEntity host)
{
if (host != null)
return new TSplineUVNFrame(host);
return null;
}
internal static TSplineUVNFrame[] Wrap(ITSplineUVNFrameEntity[] hosts)
{
return hosts.Select(Wrap).ToArray();
}
internal static TSplineUVNFrame[][] Wrap(ITSplineUVNFrameEntity[][] hosts)
{
return hosts.Select(Wrap).ToArray();
}
internal static ITSplineUVNFrameEntity Unwrap(TSplineUVNFrame o)
{
return o.TSplineUVNFrameEntity;
}
internal static ITSplineUVNFrameEntity[] Unwrap(IEnumerable<TSplineUVNFrame> o)
{
return o.Select(Unwrap).ToArray();
}
internal static ITSplineUVNFrameEntity[] Unwrap(TSplineUVNFrame[] o)
{
return o.Select(Unwrap).ToArray();
}
internal static ITSplineUVNFrameEntity[][] Unwrap(TSplineUVNFrame[][] 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("TSplineUVNFrame(Position = ", Position).Add(", U = ", U).Add(", V = ", V)
.Add(", Normal = ", Normal)
.Append(")");
}
}
}