コード例 #1
0
        private ParallelogramNode BuildLeftHierarchy()
        {
            List <Polyline>          boundaryAnchorCurves = FindLeftBoundaryAnchorCurves();
            List <ParallelogramNode> l = new List <ParallelogramNode>();

            foreach (Polyline a in boundaryAnchorCurves)
            {
                l.Add(a.ParallelogramNodeOverICurve);
            }

            this.thinLeftHierarchy = HierarchyCalculator.Calculate(thinLefttNodes, this.settings.GroupSplit);

            return(HierarchyCalculator.Calculate(l, this.settings.GroupSplit));
        }
コード例 #2
0
        internal static ParallelogramNode Calculate(List <ParallelogramNode> nodes, int groupSplitThresholdPar)
        {
            HierarchyCalculator calc = new HierarchyCalculator(nodes, groupSplitThresholdPar);

            return(calc.Calculate());
        }
コード例 #3
0
 internal static ParallelogramNode Calculate(List<ParallelogramNode> nodes, int groupSplitThresholdPar){
     HierarchyCalculator calc=new HierarchyCalculator(nodes,groupSplitThresholdPar);
     return calc.Calculate();
 }