Skip to content

Commit

Permalink
Removed snapping points source;
Browse files Browse the repository at this point in the history
  • Loading branch information
katehryhorenko committed Nov 7, 2023
1 parent 961a568 commit e8bbdab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
25 changes: 2 additions & 23 deletions Elements/src/CoreModels/RepresentationInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,14 @@ namespace Elements
/// </summary>
public class RepresentationInstance
{
/// <summary>
/// The source of the snapping points.
/// </summary>
public SnappingPointsSource SnappingPointsSource { get; set; }


/// <summary>
/// Initializes a new instance of RepresentationInstance class.
/// </summary>
/// <param name="representation">The element representation.</param>
/// <param name="material">The material applied to the element representation.</param>
/// <param name="isDefault">Indicates if this representation is default.</param>
/// <param name="representationTypes">The set of representation type names that can be used by view or by other parts of the sysetem to identify
/// if this element representation is suitable for display.</param>
public RepresentationInstance(ElementRepresentation representation, Material material, bool isDefault = true, params string[] representationTypes) :
this(representation, material, isDefault, SnappingPointsSource.None, representationTypes)
{
}

/// <summary>
/// Initializes a new instance of RepresentationInstance class.
/// </summary>
/// <param name="representation">The element representation.</param>
/// <param name="material">The material applied to the element representation.</param>
/// <param name="isDefault">Indicates if this representation is default.</param>
public RepresentationInstance(ElementRepresentation representation, Material material, bool isDefault = true) :
this(representation, material, isDefault, SnappingPointsSource.None, "")
this(representation, material, isDefault, "")
{
}

Expand All @@ -45,16 +26,14 @@ public RepresentationInstance(ElementRepresentation representation, Material mat
/// <param name="representation">The element representation.</param>
/// <param name="material">The material applied to the element representation.</param>
/// <param name="isDefault">Indicates if this representation is default.</param>
/// <param name="snappingPointsSource">The snapping points source.</param>
/// <param name="representationTypes">The set of representation type names that can be used by view or by other parts of the sysetem to identify
/// if this element representation is suitable for display.</param>
public RepresentationInstance(ElementRepresentation representation, Material material,
bool isDefault = true, SnappingPointsSource snappingPointsSource = SnappingPointsSource.None, params string[] representationTypes)
bool isDefault = true, params string[] representationTypes)
{
Representation = representation;
Material = material;
IsDefault = isDefault;
SnappingPointsSource = snappingPointsSource;
foreach (var type in representationTypes)
{
RepresentationTypes.Add(type);
Expand Down
1 change: 0 additions & 1 deletion Elements/src/Serialization/glTF/NodeUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ public static void SetRepresentationInfo(this Node node, RepresentationInstance
{
{"isDefault", representationInstance.IsDefault},
{"representationType", representationInstance.RepresentationTypes},
{"snappingSource", representationInstance.SnappingPointsSource},
};

if (node.Mesh.HasValue)
Expand Down
21 changes: 0 additions & 21 deletions Elements/src/Snapping/SnappingPointsSource.cs

This file was deleted.

0 comments on commit e8bbdab

Please sign in to comment.