dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Serialization

MeshComponentSerializationRecord Class

Protobuf serialization record for MeshComponent.

public record MeshComponentSerializationRecord : dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<dymaptic.GeoBlazor.Core.Components.MeshComponent>, System.IEquatable<dymaptic.GeoBlazor.Core.Serialization.MeshComponentSerializationRecord>

Inheritance System.Object 🡒 MapComponentSerializationRecord 🡒 dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<MeshComponent> 🡒 MeshComponentSerializationRecord

Implements System.IEquatable<MeshComponentSerializationRecord>

Constructors

MeshComponentSerializationRecord() Constructor

Default constructor for protobuf deserialization.

public MeshComponentSerializationRecord();

MeshComponentSerializationRecord(byte[], MeshComponentMaterialSerializationRecord, string, string) Constructor

Creates a new MeshComponentSerializationRecord with the specified values.

public MeshComponentSerializationRecord(byte[]? faces, dymaptic.GeoBlazor.Core.Serialization.MeshComponentMaterialSerializationRecord? material, string? name, string? shading);

Parameters

faces System.Byte[]

material MeshComponentMaterialSerializationRecord

name System.String

shading System.String

Properties

MeshComponentSerializationRecord.Faces Property

The face indices for the mesh component.

public byte[]? Faces { get; init; }

Property Value

System.Byte[]

MeshComponentSerializationRecord.IsNull Property

Indicates whether this record represents a null value.

public override bool IsNull { get; init; }

Property Value

System.Boolean

MeshComponentSerializationRecord.Material Property

The material for the mesh component.

public dymaptic.GeoBlazor.Core.Serialization.MeshComponentMaterialSerializationRecord? Material { get; init; }

Property Value

MeshComponentMaterialSerializationRecord

MeshComponentSerializationRecord.Name Property

The name of the mesh component.

public string? Name { get; init; }

Property Value

System.String

MeshComponentSerializationRecord.Shading Property

The shading mode for the mesh component.

public string? Shading { get; init; }

Property Value

System.String

Methods

MeshComponentSerializationRecord.FromSerializationRecord() Method

Converts this serialization record back to the original type.

public override dymaptic.GeoBlazor.Core.Components.MeshComponent? FromSerializationRecord();

Returns

MeshComponent