CGAL wrap for rhino-python (through ctypes) Beta

Here just 2 functions (2d alpha shape and weighted voronoi diagram) wrapping from CGAL, combining rhino script functions. cgal_wrap.zip your script should be in the same folder How to use (2d weighted voronoi diagram, It would work on Gh-Python as well.): How to use (2d alpha shape, It would work on Gh-Python as well.)   for developer: here source code and project file(qmake)  cgal_wrapping_cpp requires: visual studio 2012 express, Qt 5.2 (64bit), CGAL-4.4, gmtl, mpfr, mpir, boost-1_55_0 It is still beta version and just for testing. I appreciate for your modification, adding more effective CGAL functions.  

  • Comments Off on CGAL wrap for rhino-python (through ctypes) Beta

グラフ理論におけるネットワークの中心性(実装) / centrality of network (graph theory), implementation

network_evaluation.zip Dijkstra’s algorithm(finding shortest path) is very core of centrality evaluation. please refer to past post “centrality of network (graph theory)” 中心性を評価する過程で頻繁に使われるのがダイクストラ法(最短ルート検索)です。 ネットワークの中心性についてはこちらのポストも参照して下さい。

  • Comments Off on グラフ理論におけるネットワークの中心性(実装) / centrality of network (graph theory), implementation

ghpythonlib.components.Voronoi

When you call ghpythonlib.components.Voronoi fumction, and try to give “boundary” input something like you always have to specify clearly the input type hint as follows vd_test.zip However, this works only with rectangle curve, so that more adaptive solution could be using rhinoscriptsyntax.CurveBooleanIntersection with calling ghpythonlib.components.Voronoi fumction with just 1 input(points). vd_test_trim.zip    

  • Comments Off on ghpythonlib.components.Voronoi

baking component (from script) / pythonスクリプトから自動的にベイクさせるコンポーネント

baking.gh This will fit for some projects (parameter finding, when you get “good ” paramete combination, then you can bake it automatically) 2 input port layer_name: baked object will be on that layer name, if the layer doesn’t exist, it will be created. bake_obj_list: object list, same like we directed rhino preview object to “a” port. いくつかのプロジェクトに使えると思います。パラメータの組を探して、ある評価にマッチしたときに、パラメータの記録とベイクを同時に自動に行うのに使えそうです) 2つの入力 layer_name: レイヤの名前を指定します。指定したレイヤにベイクオブジェクトが焼かれます。おそらくこれはダイナミックに、パラメータの組を基にしたレイヤ名などにするとスマートでしょう。レイヤが存在しない場合は新たに作成します。 bake_obj_list: ライノプレビューオブジェクトを入力します。これまでプレビューモデルを “a” ポートに向けていたのと同じです。全てをこれに向けるとどんどんオブジェクトが量産されて行くので注意。上で書いたように、ある条件にあったときだけ、焼く、という風に使ってください。      

  • Comments Off on baking component (from script) / pythonスクリプトから自動的にベイクさせるコンポーネント

python module for MAS studio, スタジオ用のpythoモジュールです

mas.zip what: スタジオで扱うモデルのために作ったモジュールです。今後機能拡張、して行きます。詳しい使用方法はエスキース時に説明します(後にポストします)。グラフ理論における最短ルート検索などの関数を含みます These are python modules made for this MAS studio. Still in progress. I will lecture you how to use in escuisse time. It includes functions to find the shortest path in network, the algorithms are based on graph theory. how to set up: MASunitというフォルダを c:\ 直下 に作成( c:\MASunit  )して下さい。その中にzipファイルの中身 CA_neighbour.py graph_util.py Utility.py の3つのファイルを入れてください。 create a folder “MASunit” directly under c:\ ( c:\MASunit) . unzip downloaded mas.zip you will have 3 files: CA_neighbour.py graph_util.py Utility.py put these files in that “MASunit” folder. パスを通します rhinoceros で EditPythonScript とコマンドを打ってpython editorを出してください。 Tools -> options… とたどって Files タブ Module Search Paths のところで + ボタンを押して、上で作ったフォルダのパス c:\MASunit を指定してください。その後Rhinocerosを終了し、再起動してから使用可能になります。 set the path to modules on Rhinoceros command “EditPythonScript”Read More »

  • Comments Off on python module for MAS studio, スタジオ用のpythoモジュールです

agents from textdots and surface、文字情報、位置情報、平面形をマッチさせてagentのインスタンスを作る

agents_from_textdots_and_surface.zip This would probably fit to Justin’s CA model, but still would be useful for all of you. Also this components combination and class definitions could work for all of your models. この入力方法はJustinさんのモデルに使えると思いますが、2つのコンポーネントのつなぎかた、インスタンスの送り方、クラスの定義などは皆さんのモデルにほぼ共通して使えるスタイルです。

  • Comments Off on agents from textdots and surface、文字情報、位置情報、平面形をマッチさせてagentのインスタンスを作る