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
ParameterDescription
TMaterialThe material type used by this PrimitiveBuilder instance.
TvGThe vertex fragment type with Position, Normal and Tangent. Valid types are:
TvMThe vertex fragment type with Colors and Texture Coordinates. Valid types are:
TvSThe vertex fragment type with Skin Joint Weights. Valid types are:

Constructors

NameDescription
MeshBuilder(string)

Properties

NameDescription
Extras { get; set; }Gets or sets the custom data of this object.
IsEmpty { get; }
Materials { get; }
Name { get; set; }Gets or sets the display text name, or null.
Primitives { get; }
VertexPreprocessor { get; set; }

Methods

NameDescription
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