G-coordinator ver3.0.0
The internal G-code generation process has been standardized to the gcoordinator library version 0.0.14. As a result, some aspects of the fabrication code processing have been modified.
In G-coordinator ver2, the code for shaping was written inside a function called object_modeling(). In ver3, that restriction has been removed, and now shaping can be done through the execution of pure Python code.
By passing the list of path objects, full_object, to the gui_export() function, you can preview and export G-code within the application.
python
ver3 series code
import numpy as np
import gcoordinator as gc
full_object = []
for height in range(100):
arg = np.linspace(0, 2*np.pi, 100)
x = 10 * np.cos(arg)
y = 10 * np.sin(arg)
z = np.full_like(arg, (height+1) * 0.2)
wall = gc.Path(x, y, z)
full_object.append(wall)
gc.gui_export(full_object)
In conjunction with the changes to the fabrication code, official documentation has been created for G-coordinator (GUI) and gcoordinator (library). A tutorial on the fabrication code has been included in the official documentation.
https://gcoordinator.readthedocs.io/en/latest/
In version 3, code refactoring was performed to streamline the complexity of the code, leading to certain functions being restricted or deprecated. Specifically:
- Functionality to access parameter tree values in the editor
- The print() function in the editor
- The Transform.fill() function
These features are not available in version 3.0.0, but we plan to reintroduce them in future updates in a more improved manner.
For more information, see the following documentation:
https://gcoordinator.readthedocs.io/en/latest/release_notes.html
---
G-coordinator ver3.0.0
内部のG-code生成処理をgcoordinatorライブラリ0.0.14に統一
G-coordinator ver2では,造形のコードをobject_modeling()という関数の内部に記述していました.ver3では,その制限がなくなり,純粋なpythonコードの実行で造形ができるようになっています.
パスオブジェクトのリストfull_objectをgui_export()関数に渡すことで,アプリ上でのプレビューやG-codeの書き出しができます.
python
ver3 series code
import numpy as np
import gcoordinator as gc
full_object = []
for height in range(100):
arg = np.linspace(0, 2*np.pi, 100)
x = 10 * np.cos(arg)
y = 10 * np.sin(arg)
z = np.full_like(arg, (height+1) * 0.2)
wall = gc.Path(x, y, z)
full_object.append(wall)
gc.gui_export(full_object)
造形コードの変更に伴い,G-coordinator(GUI),gcoordinator(library)の公式ドキュメントを作成.
公式ドキュメントで,造形のコードのチュートリアルを作成.
https://gcoordinator.readthedocs.io/ja/latest/
ver3においては,煩雑化していたコードのリファクタリングに伴い,一部機能の制限,廃止を行いました.
具体的に,
- エディタでパラメータツリーの値にアクセスする機能
- エディタでのprint()関数
- Transform.fill()関数
これらの機能はver3.0.0では搭載していませんが,今後のアップデートでより良い形で再登場させる予定です.
詳しくは,以下の公式ドキュメントを参照してください
https://gcoordinator.readthedocs.io/ja/latest/release_notes.html