Mesh Workbench/ja: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 47: Line 47:
</div>
</div>


* [[Image:Mesh_Import.svg|32px]] [[Mesh_Import|Import mesh...]]: Imports a mesh from file.
* [[Image:Mesh_Import.svg|32px]] [[Mesh_Import|Import mesh...]]: Imports a mesh object from file.


* [[Image:Mesh_Export.svg|32px]] [[Mesh_Export|Export mesh...]]: Exports a mesh to file.
* [[Image:Mesh_Export.svg|32px]] [[Mesh_Export|Export mesh...]]: Exports a mesh object to file.


* [[Image:Mesh_FromPartShape.svg|32px]] [[Mesh_FromPartShape|Create mesh from shape...]]: Creates meshes from [[Part Module|Part]] objects.
* [[Image:Mesh_FromPartShape.svg|32px]] [[Mesh_FromPartShape|Create mesh from shape...]]: Creates mesh objects from shape objects.


* [[Mesh_RemeshGmsh|Refinement...]]: Refines a mesh. {{Version|0.19}}
* [[Mesh_RemeshGmsh|Refinement...]]: Remeshes a mesh object. {{Version|0.19}}


* Analyze
* Analyze
** [[Mesh_Evaluation|Evaluate and repair mesh...]]: Opens a dialog to analyze and repair a mesh.
** [[Mesh_Evaluation|Evaluate and repair mesh...]]: Evaluates and repairs a mesh object.
** [[Image:Mesh_EvaluateFacet.svg|32px]] [[Mesh_EvaluateFacet|Face info]]: Gives information on selected faces.
** [[Image:Mesh_EvaluateFacet.svg|32px]] [[Mesh_EvaluateFacet|Face info]]: Shows information about faces of mesh objects.
** [[Mesh_CurvatureInfo|Curvature info]]: Gives information on the curvature.
** [[Mesh_CurvatureInfo|Curvature info]]: Shows the absolute curvature of [[Mesh_VertexCurvature|curvature objects]] at selected points.
** [[Mesh_EvaluateSolid|Check solid mesh]]: Checks if a mesh is a solid.
** [[Mesh_EvaluateSolid|Check solid mesh]]: Checks if a mesh object is solid.
** [[Mesh_BoundingBox|Boundings info...]]: Shows the coordinates of the boundingbox of a mesh.
** [[Mesh_BoundingBox|Boundings info...]]: Shows the bounding box coordinates of a mesh object.


* [[Image:Mesh_VertexCurvature.svg|32px]] [[Mesh_VertexCurvature|Curvature plot]]: Calculates the curvature of the vertices of a mesh.
* [[Image:Mesh_VertexCurvature.svg|32px]] [[Mesh_VertexCurvature|Curvature plot]]: Creates Mesh Curvature objects for mesh objects.


* [[Image:Mesh_HarmonizeNormals.svg|32px]] [[Mesh_HarmonizeNormals|Harmonize normals]]: Harmonizes the normals of a mesh.
* [[Image:Mesh_HarmonizeNormals.svg|32px]] [[Mesh_HarmonizeNormals|Harmonize normals]]: Harmonizes the normals of mesh objects.


* [[Image:Mesh_FlipNormals.svg|32px]] [[Mesh_FlipNormals|Flip normals]]: Flips the normals of a mesh.
* [[Image:Mesh_FlipNormals.svg|32px]] [[Mesh_FlipNormals|Flip normals]]: Flips the normals of mesh objects.


* [[Mesh_FillupHoles|Fill holes...]]: Closes holes in a mesh.
* [[Mesh_FillupHoles|Fill holes...]]: Fills holes in mesh objects.


* [[Image:Mesh_FillInteractiveHole.svg|32px]] [[Mesh_FillInteractiveHole|Close hole]]: Interactively closes holes in a mesh.
* [[Image:Mesh_FillInteractiveHole.svg|32px]] [[Mesh_FillInteractiveHole|Close hole]]: Fills selected holes in mesh objects.


* [[Mesh_AddFacet|Add triangle]]: Adds a triangle to a mesh.
* [[Mesh_AddFacet|Add triangle]]: Adds faces along a boundary of an open mesh object.


* [[Image:Mesh_RemoveComponents.svg|32px]] [[Mesh_RemoveComponents|Remove components...]]: Removes independent components from a mesh.
* [[Image:Mesh_RemoveComponents.svg|32px]] [[Mesh_RemoveComponents|Remove components...]]: Removes faces from mesh objects.


* [[Mesh_RemoveCompByHand|Remove components by hand...]]: Marks a component for removal from a mesh.
* [[Mesh_RemoveCompByHand|Remove components by hand...]]: Removes components from mesh objects.


* [[Mesh_Segmentation|Create mesh segments...]]: Creates mesh segments.
* [[Mesh_Segmentation|Create mesh segments...]]: Creates separate mesh segments for specified surface types of a mesh object.


* [[Mesh_SegmentationBestFit|Create mesh segments from best-fit surfaces...]]: Creates mesh segments from best-fit surfaces.
* [[Mesh_SegmentationBestFit|Create mesh segments from best-fit surfaces...]]: Creates separate mesh segments for specified surface types of a mesh object, and can identify their parameters.


* [[Mesh_Smoothing|Smooth...]]: Smooths meshes.
* [[Mesh_Smoothing|Smooth...]]: Smooths mesh objects.


* [[Mesh_Decimating|Decimation...]]: Decimates meshes. {{Version|0.19}}
* [[Mesh_Decimating|Decimation...]]: Reduces the number of faces in mesh objects. {{Version|0.19}}


* [[Mesh_Scale|Scale...]]: Scales meshes.
* [[Mesh_Scale|Scale...]]: Scales mesh objects.


* [[Image:Mesh_BuildRegularSolid.svg|32px]] [[Mesh_BuildRegularSolid|Regular solid...]] Creates a regular solid mesh.
* [[Image:Mesh_BuildRegularSolid.svg|32px]] [[Mesh_BuildRegularSolid|Regular solid...]] Creates a regular parametric solid mesh object.


* Boolean
* Boolean
** [[Mesh_Union|Union]]: Creates a union (fusion) from meshes.
** [[Mesh_Union|Union]]: Creates a mesh object that is the union of two mesh objects.
** [[Mesh_Intersection|Intersection]]: Creates an intersection (common) from meshes.
** [[Mesh_Intersection|Intersection]]: Creates a mesh object that is the intersection of two mesh objects.
** [[Mesh_Difference|Difference]]: Creates a difference (cut) from meshes.
** [[Mesh_Difference|Difference]]: Creates a mesh object that is the difference of two mesh objects.


* Cutting
* Cutting
** [[Image:Mesh_PolyCut.svg|32px]] [[Mesh_PolyCut|Cut mesh]]: Cuts a mesh with a polygon
** [[Image:Mesh_PolyCut.svg|32px]] [[Mesh_PolyCut|Cut mesh]]: Cuts whole faces from mesh objects.
** [[Mesh_PolyTrim|Trim mesh]]: Trims a mesh with a polygon.
** [[Mesh_PolyTrim|Trim mesh]]: Trims faces and parts of faces from mesh objects.
** [[Mesh_TrimByPlane|Trim mesh with a plane]]: Trims a mesh with a plane.
** [[Mesh_TrimByPlane|Trim mesh with a plane]]: Trims faces and parts of faces on one side of a plane from a mesh object.
** [[Mesh_SectionByPlane|Create section from mesh and plane]]: Creates a section from a mesh and a plane.
** [[Mesh_SectionByPlane|Create section from mesh and plane]]: Creates a cross section across a mesh object.
** [[Mesh_CrossSections|Cross-sections...]]: ???. {{Version|0.19}}
** [[Mesh_CrossSections|Cross-sections...]]: Creates multiple cross sections across mesh objects. {{Version|0.19}}


* [[Mesh_Merge|Merge]]: Merges meshes.
* [[Mesh_Merge|Merge]]: Creates a mesh object by combining the meshes of two or more mesh objects.


* [[MeshPart_CreateFlatMesh|Unwrap Mesh]]: Creates a flat representation of a mesh. {{Version|0.19}}
* [[MeshPart_CreateFlatMesh|Unwrap Mesh]]: Creates a flat representation of a mesh object. {{Version|0.19}}


* [[MeshPart_CreateFlatFace|Unwrap Face]]: Creates a flat representation of a face of a mesh. {{Version|0.19}}
* [[MeshPart_CreateFlatFace|Unwrap Face]]: Creates a flat representation of a face of a shape object. {{Version|0.19}}


==Preferences==
==Preferences==


There are some [[Import_Export_Preferences#Mesh_Formats|export preferences related to Mesh Formats]] but these are not used by commands belonging to this workbench. They are used by the [[Std_Export|Std Export]] command.
* [[Image:Preferences-import-export.svg|32px]] [[Import_Export_Preference|Preference]] Import-Export

Mesh Workbench preferences can be found in the following categories of the [[Preferences_Editor|Preferences Editor]]:
* [[Image:Preferences-display.svg|32px]] [[Preferences_Editor#Display_settings|Display]]: On the [[Preferences_Editor#Mesh_view|Mesh view]] tab several preferences can be set.
* [[Image:Preferences-openscad.svg|32px]] [[OpenSCAD_Preferences|OpenSCAD]]: The [[Mesh_Union|Mesh Union]], [[Mesh_Intersection|Mesh Intersection]] and [[Mesh_Difference|Mesh Difference]] commands require [http://www.openscad.org/ OpenSCAD] and use the '''OpenSCAD executable''' preference to find its executable.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==リンク==
今のところメッシュモジュールのインターフェイスにはいくつかの基本的な操作しかありません。しかし [[Mesh Scripting/jp|スクリプト]]を使用すればさらに多くの処理をFreeCADのメッシュに対して行うこともできます。
</div>
</div>

Meshes can also be handled via [[Python]] using [[Mesh Scripting|Mesh Scripting]].

==リンク==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
* [[FreeCAD_and_Mesh_Import|FreeCAD and Mesh Import]]
* [[FreeCAD_and_Mesh_Import|FreeCAD and Mesh Import]]
</div>
</div>



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">

Revision as of 12:00, 25 July 2020

Mesh workbench icon

Introduction

メッシュワークベンチでは三角形メッシュを取り扱えます。メッシュは3Dオブジェクトの特別なタイプの一つで、エッジと角(頂点とも呼ばれます)によってつながった三角形によって構成されます。

SketchupBlenderMaya3d studio maxといった多くの3Dアプリケーションでは基本となる3Dオブジェクトのタイプとしてメッシュを使用しています。これはメッシュが頂点(点)、エッジ、(三角形)面のみからなる非常にシンプルなオブジェクトで作成や変更、分割、伸縮をとても簡単に行うことができ、劣化なしで容易にアプリケーション間でのやり取りができるためです。また非常にシンプルなデータからできているので3Dアプリケーションは非常に大量のデータであっても普通は問題を起こすことなく扱うことができます。これらの理由からしばしばメッシュは映画やアニメーション、画像作成といったアプリケーションで取り扱う3Dオブジェクトの選択肢となります。

しかしエンジニアリング分野ではメッシュには大きな欠点があります。点とラインと面だけでできているせいで非常に融通がききづらいのです。メッシュは面だけで形づくられ、体積情報がないのでソリッドとして振る舞うことができません。メッシュではある点がオブジェクトの内側にあるのか外側にあるのか自動で判定する方法がありません。つまり加算や減算に代表される全てのソリッドベースの操作はメッシュに対して行うことがかなり難しく、エラーが起きやすいのです。

メッシュモジュールの使用方法

メッシュモジュールの現在のインターフェイスは非常にシンプルで全ての機能はMeshメニューにまとめられています。メッシュに対して行うことのできる操作の中でももっとも重要なものは以下の通りです:

  • 複数のファイルフォーマットでのメッシュのインポート
  • 複数のファイルフォーマットでのメッシュのエクスポート
  • パートオブジェクトのメッシュへの変換
  • 曲率、面の解析とメッシュを問題なくソリッドに変換できるかどうかのチェック
  • メッシュ法線の反転
  • メッシュに開いた穴の穴埋め
  • メッシュ面の除去
  • メッシュの結合、減算、交差
  • 直方体、球、円錐、円筒といったメッシュプリミティブの作成
  • ラインに沿ったメッシュの切断
  • Close hole: Fills selected holes in mesh objects.
  • Add triangle: Adds faces along a boundary of an open mesh object.
  • Boolean
    • Union: Creates a mesh object that is the union of two mesh objects.
    • Intersection: Creates a mesh object that is the intersection of two mesh objects.
    • Difference: Creates a mesh object that is the difference of two mesh objects.
  • Merge: Creates a mesh object by combining the meshes of two or more mesh objects.

Preferences

There are some export preferences related to Mesh Formats but these are not used by commands belonging to this workbench. They are used by the Std Export command.

Mesh Workbench preferences can be found in the following categories of the Preferences Editor:

リンク


PartDesign Workbench
OpenSCAD Module