Class Toolkit

Toolkit class

public static class Toolkit

Methods

NameDescription
static AddMesh<TMaterial,TvG,TvM,TvS>(this MeshBuilder<TMaterial, TvG, TvM, TvS>, Mesh, Converter<Material, TMaterial>)
static CopyChannelsTo(this Material, MaterialBuilder, params string[])
static CopyChannelsTo(this MaterialBuilder, Material, params string[])
static CopyTo(this ChannelBuilder, MaterialChannel)
static CopyTo(this Material, MaterialBuilder)
static CopyTo(this MaterialBuilder, Material)
static CopyTo(this MaterialChannel, ChannelBuilder)
static CreateBufferView<T>(this GlbData, IReadOnlyList<T>)
static CreateMaterial(this GlbData, MaterialBuilder)
static CreateMesh(this GlbData, IMeshBuilder<MaterialBuilder>)
static CreateMesh<TMaterial>(this GlbData, Converter<TMaterial, Material>, IMeshBuilder<TMaterial>)
static CreateMeshes(this GlbData, params IMeshBuilder<MaterialBuilder>[])
static CreateMeshes<TMaterial>(this GlbData, Converter<TMaterial, Material>, params IMeshBuilder<TMaterial>[])
static CreateMeshes<TMaterial>(this GlbData, Converter<TMaterial, Material>, SceneBuilderSchema2Settings, params IMeshBuilder<TMaterial>[])
static CreateVertexAccessor(this GlbData, MemoryAccessor)
static EvaluateLines(this Mesh, IGeometryTransform)
static EvaluateLines(this MeshPrimitive, IGeometryTransform)
static EvaluatePoints(this Mesh, IGeometryTransform)
static EvaluatePoints(this MeshPrimitive, IGeometryTransform)
static EvaluateTriangles(this Mesh, IGeometryTransform)
static EvaluateTriangles(this MeshPrimitive, IGeometryTransform)
static EvaluateTriangles(this Scene, RuntimeOptions, Animation, float)Yields a collection of triangles representing the geometry in world space.
static EvaluateTriangles<TvG,TvM>(this Scene, RuntimeOptions, Animation, float)Yields a collection of triangles representing the geometry in world space.
static EvaluateTriangles<TvG,TvM,TvS>(this Mesh, IGeometryTransform)
static FindNode(this Node, Predicate<Node>)Finds a Node by name in the current graph.
static FindNode(this Scene, Predicate<Node>)Finds a Node by name in the current graph.
static GetDiffuseColor(this Material, Vector4)
static GetDiffuseTexture(this Material)
static GetDiffuseTextureTransform(this Material)
static GetVertexColumns(this MeshPrimitive)
static SaveAsWavefront(this GlbData, string)
static SaveAsWavefront(this GlbData, string, Animation, float)
static ToMaterialBuilder(this Material)
static ToMeshBuilder(this Mesh)
static ToMeshBuilder<TvG,TvM,TvS>(this IEnumerable<EvaluatedTriangle<TvG, TvM, TvS>>)
static ToMeshBuilder<TMaterial,TvG,TvM,TvS>(this IEnumerable<(VertexBuilder<TvG, TvM, TvS> A, VertexBuilder<TvG, TvM, TvS> B, VertexBuilder<TvG, TvM, TvS> C, TMaterial Material)>, Converter<TMaterial, MaterialBuilder>)
static ToSceneBuilder(this Scene)
static ToSchema2(this AlphaMode)
static ToStaticMeshBuilder<TvG,TvM>(this Scene, RuntimeOptions, Animation, float)
static 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
static ToToolkit(this AlphaMode)
static UseAnimation(this GlbData, string)
static UseImageWithContent(this GlbData, MemoryImage)Creates or reuses an GlbImage with the image content set by image
static UseImageWithFile(this GlbData, string)Creates or reuses an GlbImage with the file set by filePath
static WithChannelColor(this Material, string, Vector4)
static WithChannelFactor(this Material, string, string, float)
static WithChannelParameter(this Material, string, Vector4)
static WithChannelTexture(this Material, string, int, ImageGlb)
static WithChannelTexture(this Material, string, int, string)
static WithColor(this PunctualLight, Vector3, float, float)Defines the light color, intensity and range for the current PunctualLight.
static WithDefault(this Material)Initializes this Material instance with default material attributes.
static WithDefault(this Material, Vector4)Initializes this Material instance with default material attributes.
static WithDoubleSide(this Material, bool)
static WithIndicesAccessor(this MeshPrimitive, PrimitiveType, IReadOnlyList<int>)
static WithIndicesAccessor(this MeshPrimitive, PrimitiveType, MemoryAccessor)
static WithIndicesAutomatic(this MeshPrimitive, PrimitiveType)
static WithInstanceAccessor<T>(this MeshGpuInstancing, string, IReadOnlyList<T>)
static WithInstanceAccessors(this MeshGpuInstancing, IReadOnlyList<AffineTransform>)
static WithInstanceCustomAccessor(this MeshGpuInstancing, string, IReadOnlyList<object>)
static WithInstanceCustomAccessors(this MeshGpuInstancing, IReadOnlyList<JsonContent>)
static WithLocalRotation(this Node, Quaternion)
static WithLocalScale(this Node, Vector3)
static WithLocalTransform(this Node, AffineTransform)
static WithLocalTranslation(this Node, Vector3)
static WithMaterial(this MeshPrimitive, Material)
static WithMesh(this Node, Mesh)
static WithMorphingAnimation(this Node, string, ICurveSampler<SparseWeight8>)
static WithMorphingAnimation<T>(this Node, string, ICurveSampler<T>)
static WithMorphTargetAccessors(this MeshPrimitive, int, IEnumerable<MemoryAccessor>)
static WithOrthographicCamera(this Node, float, float, float, float)
static WithPBRMetallicRoughness(this Material)Initializes this Material instance with PBR Metallic Roughness attributes.
static WithPBRMetallicRoughness(this Material, Vector4, string, string, float, float)
static WithPBRSpecularGlossiness(this Material)Initializes this Material instance with PBR Specular Glossiness attributes.
static WithPerspectiveCamera(this Node, float?, float, float, float)
static WithRotationAnimation(this Node, string, params (float Key, Quaternion Value)[])
static WithRotationAnimation(this Node, string, ICurveSampler<Quaternion>)
static WithRotationAnimation(this Node, string, IReadOnlyDictionary<float, Quaternion>)
static WithScaleAnimation(this Node, string, params (float Key, Vector3 Value)[])
static WithScaleAnimation(this Node, string, ICurveSampler<Vector3>)
static WithScaleAnimation(this Node, string, IReadOnlyDictionary<float, Vector3>)
static WithSkin(this Node, Skin)
static WithSkinBinding(this Node, params (Node Joint, Matrix4x4 InverseBindMatrix)[])
static WithSkinBinding(this Node, Matrix4x4, params Node[])
static WithSkinnedMesh(this Node, Mesh, params (Node Joint, Matrix4x4 InverseBindMatrix)[])
static WithSkinnedMesh(this Node, Mesh, Matrix4x4, params Node[])
static WithSpotCone(this PunctualLight, float, float)Sets the cone angles for the Spot light.
static WithTranslationAnimation(this Node, string, params (float Key, Vector3 Value)[])
static WithTranslationAnimation(this Node, string, ICurveSampler<Vector3>)
static WithTranslationAnimation(this Node, string, IReadOnlyDictionary<float, Vector3>)
static WithUnlit(this Material)Initializes this Material instance with Unlit attributes.
static WithVertexAccessor(this MeshPrimitive, MemoryAccessor)
static WithVertexAccessor(this MeshPrimitive, string, IReadOnlyList<float>)
static WithVertexAccessor(this MeshPrimitive, string, IReadOnlyList<Vector2>)
static WithVertexAccessor(this MeshPrimitive, string, IReadOnlyList<Vector3>)
static WithVertexAccessor(this MeshPrimitive, string, IReadOnlyList<Vector4>)
static WithVertexAccessors(this MeshPrimitive, IEnumerable<MemoryAccessor>)
static WithVertexAccessors(this MeshPrimitive, IReadOnlyList<VertexPosition>)
static WithVertexAccessors(this MeshPrimitive, IReadOnlyList<VertexPositionNormal>)
static WithVertexAccessors<TVertex>(this MeshPrimitive, IReadOnlyList<TVertex>)
static WithVertexAccessors<TvP,TvM>(this MeshPrimitive, IReadOnlyList<(TvP Geo, TvM Mat)>)
static WithVertexAccessors<TvP,TvM,TvS>(this MeshPrimitive, IReadOnlyList<(TvP Geo, TvM Mat, TvS Skin)>)

See Also