Toolkit.ToStaticMeshBuilder

ToStaticMeshBuilder<TMaterial,TvG,TvM>(this Scene, Converter<Material, TMaterial>, RuntimeOptions, Animation, float)

Evaluates the current srcScene at a given animation and time and creates a static MeshBuilder

public static MeshBuilder<TMaterial, TvG, TvM, VertexEmpty> 
    ToStaticMeshBuilder<TMaterial, TvG, TvM>(this Scene srcScene, 
    Converter<Material, TMaterial> materialFunc, RuntimeOptions options, Animation animation, 
    float time)
    where TvG : struct, IVertexGeometry
    where TvM : struct, IVertexMaterial
ParameterDescription
TMaterialAny material type
TvGA subtype of IVertexGeometry
TvMA subtype of IVertexMaterial
srcSceneThe source Scene to evaluate.
materialFuncA function to convert Material into TMaterial.
optionsEvaluation options.
animationThe source Animation to evaluate.
timeA time point, in seconds, within animation.

Return Value

A new MeshBuilder containing the evaluated geometry.

See Also


ToStaticMeshBuilder<TvG,TvM>(this Scene, RuntimeOptions, Animation, float)

public static MeshBuilder<MaterialBuilder, TvG, TvM, VertexEmpty> ToStaticMeshBuilder<TvG, TvM>(
    this Scene srcScene, RuntimeOptions options, Animation animation, float time)
    where TvG : struct, IVertexGeometry
    where TvM : struct, IVertexMaterial

See Also