Class MeshBuilderTMaterialTvGTvMTvS
MeshBuilder<TMaterial,TvG,TvM,TvS> class
Represents an utility class to help build meshes by adding primitives associated with a given material.
public class MeshBuilder<TMaterial, TvG, TvM, TvS> : BaseBuilder, ICloneable,
IMeshBuilder<TMaterial>
where TvG : struct, IVertexGeometry
where TvM : struct, IVertexMaterial
where TvS : struct, IVertexSkinning
Parameter | Description |
---|
TMaterial | The material type used by this PrimitiveBuilder instance. |
TvG | The vertex fragment type with Position, Normal and Tangent. Valid types are: |
TvM | The vertex fragment type with Colors and Texture Coordinates. Valid types are: |
TvS | The vertex fragment type with Skin Joint Weights. Valid types are: |
Constructors
Properties
Methods
Name | Description |
---|
AddMesh(IMeshBuilder<TMaterial>, Matrix4x4) | |
AddMesh(IMeshBuilder<TMaterial>, Func<TMaterial, TMaterial>, Converter<IVertexBuilder, VertexBuilder<TvG, TvM, TvS>>) | |
AddMesh<TSourceMaterial>(IMeshBuilder<TSourceMaterial>, Func<TSourceMaterial, TMaterial>, Converter<IVertexBuilder, VertexBuilder<TvG, TvM, TvS>>) | |
Clone(Func<TMaterial, TMaterial>) | |
TransformVertices(Func<VertexBuilder<TvG, TvM, TvS>, VertexBuilder<TvG, TvM, TvS>>) | Transforms all the points of all the PrimitiveBuilder of the this MeshBuilder using the given lambfa function. |
UseMorphTarget(int) | |
UsePrimitive(TMaterial, int) | Creates, or uses an existing primitive using material. |
Validate() | |
See Also