找回密码
 注册
搜索
查看: 20576|回复: 10

[已回复] 请教各位这种点的顺序调整怎么做到?

[复制链接]
发表于 2010-12-1 15:46:46 | 显示全部楼层 |阅读模式
请教各位这种点的顺序调整怎么做到?
01 copy copy.jpg
02 copy copy.jpg

评分

参与人数 1强度 +10 照度 +200 收起 理由
doubleteng + 10 + 200

查看全部评分

发表于 2010-12-1 16:09:49 | 显示全部楼层
汗~~~~~~~~~~~~~~~~~~·
回复

使用道具 举报

发表于 2010-12-1 16:34:01 | 显示全部楼层
{:3_69:}what different/???
回复

使用道具 举报

发表于 2010-12-1 17:06:03 | 显示全部楼层
顶贴争分
顺便说一句,LZ如果想求人帮忙的话,怎么办把GH原文件发上来呢
回复

使用道具 举报

发表于 2010-12-1 17:09:57 | 显示全部楼层
{:3_56:}{:3_53:}
回复

使用道具 举报

发表于 2010-12-1 17:14:50 | 显示全部楼层
{:3_60:}{:3_60:}
回复

使用道具 举报

发表于 2010-12-2 09:55:52 | 显示全部楼层
这个很简单的,你先调整为竖向排列,再用一下FLATTERN
回复

使用道具 举报

 楼主| 发表于 2010-12-2 12:13:13 | 显示全部楼层
请问楼上怎样可以调整竖向排列?
回复

使用道具 举报

发表于 2010-12-3 14:52:05 | 显示全部楼层
請用SORT這個運算器如圖

或是使用下列語法看看


Try this:
Sub RunScript(ByVal ptList As List(Of On3dPoint))

Dim tree As New DataTree(Of On3dPoint)
Dim pathNum As Int32 = 0
Dim j As Int32 = ptList.Count() - 1

nearTwo(ptList, tree, pathNum, j)

pOut = tree

End Sub

#Region "Additional methods and Type declarations"
Sub nearTwo (ByVal ptsIn As List(Of On3dPoint), ByRef tree As DataTree(Of On3dPoint), ByRef pathNum As Int32, ByRef j As Int32)
While (j > 3)
Dim path As New EH_Path(pathNum)

Dim d1 As Double = Double.MaxValue
Dim d2 As Double = Double.MaxValue
Dim min1 As Int32 = -1
Dim min2 As Int32 = -1

For i As Int32 = 1 To j - 1
Dim d As Double = ptsIn(0).DistanceTo(ptsIn(i))

If (d < d1) Then
d1 = d
min1 = i
Else If (d < d2) Then
d2 = d
min2 = i
End If
Next

tree.Add(ptsIn(0), path)
tree.Add(ptsIn(min1), path)
tree.Add(ptsIn(min2), path)
ptsIn(0) = Nothing
ptsIn(min1) = Nothing
ptsIn(min2) = Nothing

Dim tList As New List(Of On3dPoint)
For i As Int32 = 0 To j - 1
If (ptsIn(i) <> Nothing) Then
tList.Add(ptsIn(i))
End If
Next

j = tList.Count()
pathNum += 1

'calls recursive routine
nearTwo(tList, tree, pathNum, j)

End While
End Sub
secondclosest.jpg
回复

使用道具 举报

发表于 2010-12-3 17:28:48 | 显示全部楼层
LZ这些点是做什么用的?
回复

使用道具 举报

发表于 2010-12-5 21:08:53 | 显示全部楼层
我震惊了,汗……
回复

使用道具 举报

NCFZ微信公众号

手机版|小黑屋|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 ) 辽公网安备21021102000973号

GMT+8, 2026-11-23 21:58 , Processed in 0.049501 second(s), 29 queries , Gzip On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表