GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
MeshComponent Class
The MeshComponent class is used to apply one or more materials to
a single Mesh.
ArcGIS Maps SDK for JavaScript
public class MeshComponent : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 MeshComponent
Constructors
MeshComponent() Constructor
Parameterless constructor for use as a Razor Component.
public MeshComponent();
MeshComponent(byte[], MapComponent, string, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public MeshComponent(byte[]? faces=null, dymaptic.GeoBlazor.Core.Components.MapComponent? material=null, string? name=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading> shading=null);
Parameters
faces
System.Byte[]
A flat array of indices that refer to vertices in the
vertexAttributes of the
mesh to which the component belongs.
ArcGIS Maps SDK for JavaScript
material
dymaptic.GeoBlazor.Core.Components.MapComponent
The material determines how the component is visualized.
ArcGIS Maps SDK for JavaScript
name
System.String
Specifies a name of the component.
ArcGIS Maps SDK for JavaScript
shading
System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading>
Specifies the type of normals used for lighting.
ArcGIS Maps SDK for JavaScript
Properties
MeshComponent.Faces Property
A flat array of indices that refer to vertices in the
vertexAttributes of the
mesh to which the component belongs.
ArcGIS Maps SDK for JavaScript
public byte[]? Faces { get; set; }
Property Value
MeshComponent.Material Property
The material determines how the component is visualized.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Components.MapComponent? Material { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Components.MapComponent
MeshComponent.Name Property
Specifies a name of the component.
ArcGIS Maps SDK for JavaScript
public string? Name { get; set; }
Property Value
MeshComponent.Shading Property
Specifies the type of normals used for lighting.
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading> Shading { get; set; }
Property Value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading>
Methods
MeshComponent.AddToFaces(byte[]) Method
Asynchronously adds elements to the Faces property.
public System.Threading.Tasks.Task AddToFaces(params byte[] values);
Parameters
values
System.Byte[]
The elements to add.
Returns
MeshComponent.GetFaces() Method
Asynchronously retrieve the current value of the Faces property.
public System.Threading.Tasks.Task<byte[]?> GetFaces();
Returns
System.Threading.Tasks.Task<System.Byte[]>
MeshComponent.GetMaterial() Method
Asynchronously retrieve the current value of the Material property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.MapComponent?> GetMaterial();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Components.MapComponent>
MeshComponent.GetName() Method
Asynchronously retrieve the current value of the Name property.
public System.Threading.Tasks.Task<string?> GetName();
Returns
System.Threading.Tasks.Task<System.String>
MeshComponent.GetShading() Method
Asynchronously retrieve the current value of the Shading property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading>> GetShading();
Returns
System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading>>
MeshComponent.RemoveFromFaces(byte[]) Method
Asynchronously remove an element from the Faces property.
public System.Threading.Tasks.Task RemoveFromFaces(params byte[] values);
Parameters
values
System.Byte[]
The elements to remove.
Returns
MeshComponent.SetFaces(byte[]) Method
Asynchronously set the value of the Faces property after render.
public System.Threading.Tasks.Task SetFaces(byte[]? value);
Parameters
value
System.Byte[]
The value to set.
Returns
MeshComponent.SetMaterial(MapComponent) Method
Asynchronously set the value of the Material property after render.
public System.Threading.Tasks.Task SetMaterial(dymaptic.GeoBlazor.Core.Components.MapComponent? value);
Parameters
value
dymaptic.GeoBlazor.Core.Components.MapComponent
The value to set.
Returns
MeshComponent.SetName(string) Method
Asynchronously set the value of the Name property after render.
public System.Threading.Tasks.Task SetName(string? value);
Parameters
value
System.String
The value to set.
Returns
MeshComponent.SetShading(Nullable) Method
Asynchronously set the value of the Shading property after render.
public System.Threading.Tasks.Task SetShading(System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading> value);
Parameters
value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.Shading>
The value to set.
Returns
MeshComponent.ValidateRequiredGeneratedChildren() Method
Validates source-generated child components.
public override void ValidateRequiredGeneratedChildren();
Implements ValidateRequiredGeneratedChildren()