Mesh Workbench: Difference between revisions

From FreeCAD Documentation
No edit summary
Line 1: Line 1:
The '''Mesh Workbench''' handles [http://en.wikipedia.org/wiki/Triangle_mesh triangle meshes]. Meshes are a special type of 3D objects, composed of triangles conected by their edges and their corners (also called vertices).
'''网格工作台'''用于处理[http://en.wikipedia.org/wiki/Triangle_mesh 三角网格]。网格是三维对象的一种特殊形式,由边线或者顶点相连的三角形连接而成。


[[Image:Mesh_example.jpg|An example of a mesh object]]
[[Image:Mesh_example.jpg|An example of a mesh object]]


网格对象的例子
An example of a mesh object


Many 3D applications use meshes as their primary type of 3D object, like [http://en.wikipedia.org/wiki/Sketchup sketchup], [http://en.wikipedia.org/wiki/Blender_(software) blender], [http://en.wikipedia.org/wiki/Maya_(software) maya] or [http://en.wikipedia.org/wiki/3d_max 3d studio max]. Since meshes are very simple objects, containing only vertices (points), edges and (triangular) faces, they are very easy to create, modify, subdivide, stretch, and can easily be passed from one application to another without any loss. Besides, since they contain very simple data, 3D applications can usually manage very large quantities of them without any problem. For those reasons, meshes are often the 3D object type of choice of applications dealing with movies, animation, and image creation.
许多三维应用程序都使用网格作为三维对象的主要形式,例如[http://en.wikipedia.org/wiki/Sketchup sketchup] [http://en.wikipedia.org/wiki/Blender_(software) blender] [http://en.wikipedia.org/wiki/Maya_(software) maya],或者 [http://en.wikipedia.org/wiki/3d_max 3d studio max]。因为网格是非常简单的对象,仅仅包含顶点、边、以及(三角形)面,所以网格对象非常容易创建、修改、细分、延展,以及可以轻松地从一个应用程序转换到另一个应用程序中而不会发生任何信息丢失现象。而且,由于网格对象包含的数据十分简单,故三维应用程序通常可以完好地管理大量的网格对象数据。基于此,网格通常作为用于处理电影,动画,以及图像生成的应用程序的三维对象类型的选择。


但是,在工程领域,网格存在一个较大的限制:它们是哑对象,仅仅由点、线、面组成。它们仅仅由表面组成,没有质量,所以就没有实体所具有的性质。在网格对象中,无法自动识别点是否位于对象上。这也就意味着,所有基于实体的操作,例如合并或者差减运算等,对于网格来说通常都有点困难,并经常报错。
In the field of engineering, however, meshes present one big limitation: They are very dumb objects, only composed of points,lines and faces. They are only made of surfaces, and have no mass information, so they don't behave as solids. In a mesh there is no automatic way to know if a point is inside or outside the object. This means that all solid-based operations, such as addition or subtraction, are always a bit difficult to perform on meshes, and return errors often.


由于 FreeCAD 是一个工程软件,我们当然更希望使用更高级更智能的三维对象类型来工作,使它们能够具有更多的信息,例如质量,实体性质,或者自定义参数等。可以先创建对象的网格模型作为试验台,但是对于 FreeCAD 来说,网格的读取、操作、转换也是十分重要的。在工作流程中,你将经常得到网格格式的三维数据,然后需要对数据进行处理、分析以便检测出影响使其转换成更高级对象的错误或其它问题,最后,利用[[Part Module/cn|零件模块]]将其转换成更高级的对象。
In FreeCAD, since it is an engineering application, we would obviously prefer to work with more intelligent types of 3D objects, that can carry more informations, such as mass, solid behaviour, or even custom parameters. The mesh module was first created to serve as a testbed, but be able to read, manipulate and convert meshes is also highly important for FreeCAD. Very often, in your workflow, you will receive 3D data in mesh format. You will need to handle that data, analyse it to detect errors or other problems that prevent converting them to more intelligent objects, and finally, convert them to more intelligent objects, handled by the [[Part Module]].


=== Using the mesh module ===
=== 使用网格模块 ===


网格模块具有十分简易的接口,它的所有功能都集合在'''网格'''菜单条目中。目前能够处理网格的最重要操作是:
The mesh module has currently a very simple interface, all its functions are grouped in the '''Mesh''' menu entry. The most important operations you can currently do with meshes are:
* Import meshes in several file formats
* Export meshes in several file formats
* Convert [[Part Module|Part]] objects into meshes
* Analyse curvature, faces, and check if a mesh can be safely converted into a solid
* Flip mesh [http://en.wikipedia.org/wiki/Surface_normal normals]
* Close holes in meshes
* Remove faces of meshes
* Union, subtract and intersect meshes
* Create mesh primitives, like cubes, spheres, cones or cylinders
* Cut meshes along a line


* 从多种文件格式中导入网格
These are only some of the basic operations currently present in the Mesh module interface. But the FreeCAD meshes can also be handled in many more ways by [[Mesh Scripting| scripting]].
* 将网格到处成多种文件格式
* 将[[Part Module/cn|零件]]对象转换为网格
* 分析曲率、表面,并检测网格能否成功转换为实体
* 将网格的[http://en.wikipedia.org/wiki/Surface_normal 法向量]反向
* 修补网格的缝隙
* 删除网格表面
* 对网格进行合并、差减、以及求交
* 创建基本的网格对象,像立方体、圆球、锥体、或圆柱
* 沿某条线剪切网格

这些仅仅是目前网格模块界面中存在的一些基本操作。不过也可以通过[[Mesh Scripting/cn|脚本编程]]对 FreeCAD 做更多的处理。


{{docnav/cn|Workbenches/cn|Part Module/cn}}
{{docnav/cn|Workbenches/cn|Part Module/cn}}


{{languages | {{de|Mesh Module/de}} {{es|Mesh Module/es}} {{fr|Mesh Module/fr}} {{pl|Mesh Module/pl}} {{ru|Mesh Module/ru}} {{se|Mesh Module/se}} }}
{{languages | {{cn|Getting started/cn}} {{de|Mesh Module/de}} {{es|Mesh Module/es}} {{fr|Mesh Module/fr}} {{pl|Mesh Module/pl}} {{ru|Mesh Module/ru}} {{se|Mesh Module/se}} }}


[[Category:User Documentation]]
[[Category:User Documentation]]

Revision as of 02:00, 8 December 2011

网格工作台用于处理三角网格。网格是三维对象的一种特殊形式,由边线或者顶点相连的三角形连接而成。

An example of a mesh object

网格对象的例子

许多三维应用程序都使用网格作为三维对象的主要形式,例如sketchupblendermaya,或者 3d studio max。因为网格是非常简单的对象,仅仅包含顶点、边、以及(三角形)面,所以网格对象非常容易创建、修改、细分、延展,以及可以轻松地从一个应用程序转换到另一个应用程序中而不会发生任何信息丢失现象。而且,由于网格对象包含的数据十分简单,故三维应用程序通常可以完好地管理大量的网格对象数据。基于此,网格通常作为用于处理电影,动画,以及图像生成的应用程序的三维对象类型的选择。

但是,在工程领域,网格存在一个较大的限制:它们是哑对象,仅仅由点、线、面组成。它们仅仅由表面组成,没有质量,所以就没有实体所具有的性质。在网格对象中,无法自动识别点是否位于对象上。这也就意味着,所有基于实体的操作,例如合并或者差减运算等,对于网格来说通常都有点困难,并经常报错。

由于 FreeCAD 是一个工程软件,我们当然更希望使用更高级更智能的三维对象类型来工作,使它们能够具有更多的信息,例如质量,实体性质,或者自定义参数等。可以先创建对象的网格模型作为试验台,但是对于 FreeCAD 来说,网格的读取、操作、转换也是十分重要的。在工作流程中,你将经常得到网格格式的三维数据,然后需要对数据进行处理、分析以便检测出影响使其转换成更高级对象的错误或其它问题,最后,利用零件模块将其转换成更高级的对象。

使用网格模块

网格模块具有十分简易的接口,它的所有功能都集合在网格菜单条目中。目前能够处理网格的最重要操作是:

  • 从多种文件格式中导入网格
  • 将网格到处成多种文件格式
  • 零件对象转换为网格
  • 分析曲率、表面,并检测网格能否成功转换为实体
  • 将网格的法向量反向
  • 修补网格的缝隙
  • 删除网格表面
  • 对网格进行合并、差减、以及求交
  • 创建基本的网格对象,像立方体、圆球、锥体、或圆柱
  • 沿某条线剪切网格

这些仅仅是目前网格模块界面中存在的一些基本操作。不过也可以通过脚本编程对 FreeCAD 做更多的处理。

Template:Docnav/cn

Available translations of this page: Template:Cn Template:Se