AddSubMesh()
语法
AddSubMesh([Type])概要
Add a new submesh to the currently mesh previously created with CreateMesh(). A mesh can have any number of submeshes. A submesh position is relative the mesh position. Once a submesh is created, use the following commands to build it: MeshVertexPosition(), MeshFace() and MeshIndex().
参数
Type (optional) The type of the new submesh. It can be one of the following value: #PB_Mesh_TriangleList : the submesh will be composed of a list of triangles (default). #PB_Mesh_TriangleStrip: the submesh will be composed of a list of connected triangles (vertices are shared). #PB_Mesh_TriangleFan : the submesh will be composed of a list of triangles sharing the same central vertex point. #PB_Mesh_PointList : the submesh will be composed of a list of points. #PB_Mesh_LineList : the submesh will be composed of a list of lines. #PB_Mesh_LineStrip : the submesh will be composed of a list of connected lines (vertices are shared).
返回值
无.
参阅
FreeMesh(), CreateMesh(), MeshVertexPosition(), MeshFace()
已支持操作系统
所有