DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.0.0-beta7127" />

 Group

class Group
using System.Collections.Generic; namespace Autodesk.DesignScript.Geometry { internal class Group { public string Name { get; set; } public List<MeshFace> Faces { get; set; } public Group(string name) { Name = name; Faces = new List<MeshFace>(); } public bool AddFace(int[][] facePoints) { if (facePoints.Length < 3) return false; MeshFace meshFace = MeshFace.CreateFace(facePoints.Length); for (int i = 0; i < facePoints.Length; i++) { if (facePoints[i].Length != 3) return false; meshFace.AddFacePoint(facePoints[i][0], facePoints[i][1], facePoints[i][2], i); } Faces.Add(meshFace); return true; } public bool AddFace(int[] vertexPoints) { if (vertexPoints.Length < 3) return false; MeshFace meshFace = MeshFace.CreateFace(vertexPoints.Length); for (int i = 0; i < vertexPoints.Length; i++) { meshFace.AddFacePoint(vertexPoints[i], i); } Faces.Add(meshFace); return true; } } }