本文整理汇总了C#中System.Point.ToList方法的典型用法代码示例。如果您正苦于以下问题:C# Point.ToList方法的具体用法?C# Point.ToList怎么用?C# Point.ToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Point
的用法示例。
在下文中一共展示了Point.ToList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TessellatedSolid
internal TessellatedSolid(List<PolygonalFace> facesList, Vertex[] subSolidVertices, Vertex[][] newEdgeVertices,
double[] normal, Boolean[] loopIsPositive)
{
Faces = facesList.ToArray();
Vertices = subSolidVertices;
var numloops = newEdgeVertices.GetLength(0);
var points2D = new Point[numloops][];
for (int i = 0; i < numloops; i++)
points2D[i] = MinimumEnclosure.Get2DProjectionPoints(newEdgeVertices[i], normal);
List<PolygonalFace> patchFaces = TriangulatePolygon.Run(points2D.ToList<Point[]>(), loopIsPositive);
//todo:
//1. make faces from list of points
//2. connect to existing.
MakeEdges();
CreateConvexHull();
DefineBoundingBoxAndCenter();
for (int i = 0; i < Faces.Length; i++)
{
var face = Faces[i];
var centerX = face.Vertices.Average(v => v.X);
var centerY = face.Vertices.Average(v => v.Y);
var centerZ = face.Vertices.Average(v => v.Z);
face.Center = new[] { centerX, centerY, centerZ };
}
ConnectConvexHullToObjects();
DefineVolumeAndAreas();
DefineFaceCurvature();
DefineVertexCurvature();
}