edge and cell

This could be 1 idea to consider cell connection to edge(s). However, it mixed up edge both side connection not separately. We’ll need more consideration. edge_and_cell.zip you can access cell information node / edge related. you can count cell number of each edge you can calc cell’s area of each edge as well as nodes

  • Comments Off on edge and cell

analyse_test rev01

revised version, which receive multiple breps, count vertical surfaces count eaves ceiling do not count surface touches ground (Z axis == 0) but still the input breps must be boolean unioned, would be better to make simple shape model(not that precise) analyse_test01.zip

  • Comments Off on analyse_test rev01

Graph module sample (how to set up studio python modules)

download python files from here Studio Python Modules put python files in the same folder of .gh file import and initialize in your code graph_test.3dm graph_test1.gh actual code of get shortest path in network and visualize the path shortest distance calculation by Dijkstra method (e / j )

  • Comments Off on Graph module sample (how to set up studio python modules)

GA_SA_sample2

modification from last tutorial set penalty if points are closer less 10 distance in case if there are fixed 3 points evaluation = mesh area – total network_length GA_SA_sample2.gh GA_SA_sample2.3dm

  • Comments Off on GA_SA_sample2

find Hamilton Path

出発ノードを指定して、ハミルトン閉路を探す関数のサンプルです。グラフモジュール graph_1_1.py を使います。 maxim_1Stroke.zip ハミルトン閉路がない場合、最も多くノードを介する閉路のリストを返します。 GH-Pythonだと計算フレームが問題になりそうです。サンプルは30ノード38エッジ程度。

  • Comments Off on find Hamilton Path

studio_utility_1_0 更新

download studio_utility_1_0.py studio_utility_1_0.py ユーティリティモジュールを更新しました。 新しい関数は、渋谷さんのプロジェクトで必要そうなものです。 木を配置→ヴォロノイダイアグラムを描く→ghpc.Voronoi(self.treepoints)ヴォロノイセル毎にポリラインが返ってくる→ポリラインを線に分解(su.explodeRsPolyline)→線の重複を除去(su.delDupLineInList)→一筆書きのエッジ組み合わせを作る(オイラー経路を調べること!)→グラフを作る  

  • Comments Off on studio_utility_1_0 更新

studio_utility_1_0 更新

download studio_utility_1_0.py studio_utility_1_0.py ユーティリティモジュールを更新しました。 dorpbox に熊谷さんのプロジェクトファイルを置きました。 下記 checkPolyline という関数を使っています。今後配置問題を解決するのに多用すると思われます。 rev_0609_kumagai.3dm, rev_0609_kumagai.gh

  • Comments Off on studio_utility_1_0 更新