OpenSCAD AddOpenSCADElement
|
|
| メニューの場所 |
|---|
| OpenSCAD -> Add OpenSCAD Element |
| ワークベンチ |
| OpenSCAD |
| デフォルトのショートカット |
| なし |
| 導入バージョン |
| - |
| 参照 |
| なし |
Description
説明
タスクパネルにOpenSCADのコードを入力し、OpenSCADバイナリを実行することでOpenSCADのエレメントを追加します(OpenSCADが必要です)。
'as mesh'が選択されている場合、OpenSCADはメッシュをレンダリングします。
Addが押されるたびにOpenSCADのコードが実行されエレメントがインポートされます。
この機能はOpenSCADの出力で表示される以上の文法チェック、エラーは出力しません。 エレメントが見つからない場合はuse<>ステートメントやinclude<>ステートメントで指定したパスが間違っている可能性があります。
通常の場合と同様、ライブラリはアクセス可能でなければなりません。下記のように書くとサンプルにアクセス可能です。
include <../examples/example001.scad>;
上記ではOpenSCADアイコンとしても知られる最初のサンプルをインクルードしています。
Libraries should be accessible as usual, whereas example can be reached as stated below.
include <../examples/example001.scad>;
would include the first examples also known as the OpenSCAD icon
Setup OpenSCAD within FreeCAD
Initial set up from within FreeCAD
- OpenSCAD needs to be installed on your computer before FreeCAD will have this functionality
- install OpenSCAD in the appropriate manner for your operating system. See the OpenSCAD web site for more information
- FreeCAD needs to be told where to find the OpenSCAD executable
- Switch to the OpenSCAD Workbench Menu -> View Workbench -> OpenSCAD
- Open the preferences dialog Menu -> Edit -> Preferences
- Click on "OpenSCAD" on the left plane
- Click on the button labled "..." in General Settings -> General OpenSCAD Settings -> OpenSCAD executable to browser the directory or enter the path (e.g. Ubuntu based Linux distributions /usr/bin/openscad) directly into the line input right to the button
- close and restart FreeCAD, a new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench
- It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).
FreeCAD needs to be told where to find the OpenSCAD executable:
- Switch to the
OpenSCAD Workbench via View → Workbench → OpenSCAD
- Open the preferences dialog Edit → Preferences
- Click on "OpenSCAD" on the left plane
- Click on the button labled ... in General Settings → General OpenSCAD Settings → OpenSCAD executable to browse the directory or enter the path (e.g. Ubuntu based Linux distributions
/usr/bin/openscad) directly into the line input right to the button - Close and restart FreeCAD
- Result: A new OpenSCAD icon will appear on the tool bar, and in the OpenSCAD menu, in the FreeCAD OpenSCAD workbench.
Note: It is also possible to add another optional Parameter which controls the maximum sides of a polygon before it is considered a circle (fn).
FreeCADバージョン0.14以降、上記の設定が空の場合、FreeCADはOpenSCAD実行可能ファイルを検索します。
- Tools: Replace Object, Remove Objects and Children, Refine Shape Feature, Mirror Mesh Feature, Scale Mesh Feature, Resize Mesh Feature, Increase Tolerance Feature, Convert Edges to Faces, Expand Placements, Explode Group, Add OpenSCAD Element, Mesh Boolean, Hull, Minkowski Sum
- Additional: Preferences, Import OpenSCAD code, CSG
- はじめてみよう
- インストール: ダウンロード、Windowsへのインストール、Linuxへのインストール、Macへのインストール、付加機能のインストール、Dockerでのコンパイル、AppImage、Ubuntu Snap
- 基本: FreeCADについて、ユーザー・インタフェース、Mマウス・ナビゲーション、オブジェクトの選択方法、オブジェクトの名前、設定、ワークベンチ、FreeCADファイルの構造、プロパティ、FreeCADへの貢献、寄付
- ヘルプ: チュートリアル、チュートリアル動画
- ワークベンチ: 共通ツール、アセンブリー、BIM、CAM、ドラフト、FEM、インスペクション、マテリアル、メッシュ、OpenSCAD、 パート、パートデザイン、ポイント、リバースエンジニアリング、ロボット、スケッチャー、スプレッドシート、サーフェス、テックドロー、テストフレームワーク
- 情報ハブ: ユーザー向けハブ、パワーユーザー向けハブ、開発者向けハブ