DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="0.9.0-beta1" />

 Mesh

public class Mesh : DesignScriptEntity
using Autodesk.DesignScript.Interfaces; using System.Collections.Generic; using System.Linq; namespace Autodesk.DesignScript.Geometry { public class Mesh : DesignScriptEntity { internal IMeshEntity MeshEntity => HostImpl as IMeshEntity; public IndexGroup[] FaceIndices => IndexGroup.Wrap(MeshEntity.FaceIndices, true); public Vector[] VertexNormals => Vector.Wrap(MeshEntity.VertexNormals, true); public Point[] VertexPositions => Point.Wrap(MeshEntity.VertexPositions, true); internal Mesh(IMeshEntity host, bool persist) : base(host, persist) { } public override string ToString() { return "Mesh"; } internal static Mesh Wrap(IMeshEntity host, bool persist = true) { if (host == null) return null; return new Mesh(host, persist); } internal static Mesh[] Wrap(IMeshEntity[] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static Mesh[][] Wrap(IMeshEntity[][] hosts, bool persist = true) { return (from x in hosts select Wrap(x, persist)).ToArray(); } internal static IMeshEntity[][] Unwrap(Mesh[][] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IMeshEntity[] Unwrap(Mesh[] o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IMeshEntity[] Unwrap(IEnumerable<Mesh> o) { return (from x in o select Unwrap(x)).ToArray(); } internal static IMeshEntity Unwrap(Mesh o) { return o.MeshEntity; } public static Mesh ByPointsFaceIndices(IEnumerable<Point> vertexPositions, IEnumerable<IndexGroup> indices) { return Wrap(HostFactory.Factory.MeshByPointsFaceIndices(Point.Unwrap(vertexPositions), IndexGroup.Unwrap(indices)), true); } } }