Skip to content

Commit 0b51bef

Browse files
committed
Clarified API name
1 parent 8e9b80d commit 0b51bef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SharpGLTF.Ext.3DTiles/Schema2/Ext.Features.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ internal static void ValidateFeatureIdContent(this IMeshFeatureIDInfo featureId)
4747
}
4848

4949
/// <summary>
50-
/// Set the FeatureIds for a MeshPrimitive
50+
/// Adds the FeatureIds to a MeshPrimitive
5151
/// </summary>
52-
public static MeshExtInstanceFeatureID[] SetInstanceFeatureIds(this Node node, params IMeshFeatureIDInfo[] featureIds)
52+
public static MeshExtInstanceFeatureID[] AddInstanceFeatureIds(this Node node, params IMeshFeatureIDInfo[] featureIds)
5353
{
5454
if (featureIds == null || featureIds.Length == 0) { node.RemoveExtensions<MeshExtInstanceFeatures>(); return Array.Empty<MeshExtInstanceFeatureID>(); }
5555

@@ -66,9 +66,9 @@ public static MeshExtInstanceFeatureID[] SetInstanceFeatureIds(this Node node, p
6666
}
6767

6868
/// <summary>
69-
/// Set the FeatureIds for a MeshPrimitive
69+
/// Adds the FeatureIds to a MeshPrimitive
7070
/// </summary>
71-
public static MeshExtMeshFeatureID[] SetMeshFeatureIds(this MeshPrimitive primitive, params (IMeshFeatureIDInfo fid, Texture tex, IReadOnlyList<int> channels)[] featureIds)
71+
public static MeshExtMeshFeatureID[] AddMeshFeatureIds(this MeshPrimitive primitive, params (IMeshFeatureIDInfo fid, Texture tex, IReadOnlyList<int> channels)[] featureIds)
7272
{
7373
if (featureIds == null || featureIds.Length == 0) { primitive.RemoveExtensions<MeshExtMeshFeatures>(); return Array.Empty<MeshExtMeshFeatureID>(); }
7474

@@ -90,7 +90,7 @@ public static MeshExtMeshFeatureID[] SetMeshFeatureIds(this MeshPrimitive primit
9090
namespace Tiles3D
9191
{
9292
/// <remarks>
93-
/// This extension is attached to a <see cref="Schema2.Node"/> using <see cref="ExtraProperties.UseExtension{T}"/>
93+
/// This extension is attached to a <see cref="Schema2.Node"/> using <see cref="Tiles3DExtensions.AddInstanceFeatureIds(Node, IMeshFeatureIDInfo[])"/>
9494
/// </remarks>
9595
public partial class MeshExtInstanceFeatures
9696
{
@@ -191,7 +191,7 @@ protected override void OnValidateContent(ValidationContext validate)
191191
}
192192

193193
/// <remarks>
194-
/// This extension is attached to a <see cref="Schema2.MeshPrimitive"/>
194+
/// This extension is attached to a <see cref="Schema2.MeshPrimitive"/> using <see cref="Tiles3DExtensions.AddMeshFeatureIds(MeshPrimitive, ValueTuple{IMeshFeatureIDInfo, Texture, IReadOnlyList{int}}[])"/>
195195
/// </remarks>
196196
public partial class MeshExtMeshFeatures
197197
{

0 commit comments

Comments
 (0)