Click or drag to resize
AB4D logo

DXMultiMeshGeometry3DAddSubMesh Method

Adds list of MeshGeometry3D with their Transformations and optionally custom texture coordinates.

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public int AddSubMesh(
	Material material,
	IList<MeshGeometry3D> meshes,
	IList<Transform3D> transformations,
	IList<IList<Point>> customTextureCoordinates = null,
	string subMeshName = null
)

Parameters

material  Material
Material
meshes  IListMeshGeometry3D
IList of MeshGeometry3D
transformations  IListTransform3D
IList of Transform3D
customTextureCoordinates  IListIListPoint  (Optional)
IList of IList of Point
subMeshName  String  (Optional)
name of this submesh

Return Value

Int32
returns index of the submesh in the internal collection
See Also