当前位置: 首页>>代码示例>>C#>>正文


C# Polyline.Select方法代码示例

本文整理汇总了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;
 }
开发者ID:danielskowronski,项目名称:network-max-flow-demo,代码行数:11,代码来源:BundleRouter.cs

示例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 }));
 }
开发者ID:danielskowronski,项目名称:network-max-flow-demo,代码行数:4,代码来源:ObstacleTree.cs

示例3: Targets

 IEnumerable<VisibilityVertex> Targets(Polyline targetLoosePoly) {
     return new List<VisibilityVertex> (targetLoosePoly.Select(p=>visibilityGraph.FindVertex(p))); 
 }
开发者ID:danielskowronski,项目名称:network-max-flow-demo,代码行数:3,代码来源:InteractiveEdgeRouter.cs

示例4: HandlePolyline

 static void HandlePolyline(Polyline poly, GraphicsPath graphicsPath) {
     graphicsPath.AddLines(poly.Select(PointF).ToArray());
    if( poly.Closed)
        graphicsPath.CloseFigure();
 }
开发者ID:danielskowronski,项目名称:network-max-flow-demo,代码行数:5,代码来源:Draw.cs


注:本文中的Polyline.Select方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。