本文整理汇总了C#中Polyline.Select方法的典型用法代码示例。如果您正苦于以下问题:C# Polyline.Select方法的具体用法?C# Polyline.Select怎么用?C# Polyline.Select使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Polyline
的用法示例。
在下文中一共展示了Polyline.Select方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FigureOutHookLocationForClusterOtherPort
Point FigureOutHookLocationForClusterOtherPort(Polyline poly, ClusterBoundaryPort otherEdgeEndPort, EdgeGeometry edgeGeom) {
var shapes = shortestPathRouter.MakeTransparentShapesOfEdgeGeometry(edgeGeom);
//SplineRouter.ShowVisGraph(this.VisibilityGraph, this.LooseHierarchy.GetAllLeaves(),
// shapes.Select(sh => sh.BoundaryCurve), new[] { new LineSegment(edgeGeom.SourcePort.Location, edgeGeom.TargetPort.Location) });
var s = new MultipleSourceMultipleTargetsShortestPathOnVisibilityGraph(otherEdgeEndPort.LoosePolyline.Select(p => VisibilityGraph.FindVertex(p)),
poly.Select(p => VisibilityGraph.FindVertex(p)), VisibilityGraph);
var path = s.GetPath();
foreach (var sh in shapes)
sh.IsTransparent = false;
return path.Last().Point;
}
示例2: GrowGroupAroundLoosePolyline
private static void GrowGroupAroundLoosePolyline(Obstacle group, Polyline loosePolyline) {
var points = group.VisibilityPolyline.Select(p => p).Concat(loosePolyline.Select(p => p));
group.SetConvexHull(new OverlapConvexHull(ConvexHull.CreateConvexHullAsClosedPolyline(points), new[] { group }));
}
示例3: Targets
IEnumerable<VisibilityVertex> Targets(Polyline targetLoosePoly) {
return new List<VisibilityVertex> (targetLoosePoly.Select(p=>visibilityGraph.FindVertex(p)));
}
示例4: HandlePolyline
static void HandlePolyline(Polyline poly, GraphicsPath graphicsPath) {
graphicsPath.AddLines(poly.Select(PointF).ToArray());
if( poly.Closed)
graphicsPath.CloseFigure();
}