-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dui3/alpha' into DUI3-124-Receiving-Curves-Arcs-Ellipse…
…s-Nurbs-Curves
- Loading branch information
Showing
256 changed files
with
5,106 additions
and
5,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
/// Abstracts over <see cref="InstanceProxy"/> and <see cref="InstanceDefinitionProxy"/> for sorting and grouping in receive operations. | ||
/// </summary> | ||
public interface IInstanceComponent | ||
{ | ||
/// <summary> | ||
/// The maximum "depth" at which this <see cref="InstanceProxy"/> or <see cref="InstanceDefinitionProxy"/> was found. On receive, as instances can be composed of other instances, we need to start from the deepest instance elements first when reconstructing them, starting with definitions first. | ||
/// </summary> | ||
public int MaxDepth { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
/// A proxy class for an instance definition. | ||
/// </summary> | ||
public class InstanceDefinitionProxy : Base, IInstanceComponent | ||
{ | ||
/// <summary> | ||
/// The original ids of the objects that are part of this definition, as present in the source host app. On receive, they will be mapped to corresponding newly created definition ids. | ||
/// </summary> | ||
public List<string> Objects { get; set; } // source app application ids for the objects | ||
|
||
public int MaxDepth { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.DoubleNumerics; | ||
|
||
namespace Speckle.Core.Models.Instances; | ||
|
||
/// <summary> | ||
/// A proxy class for an instance (e.g, a rhino block, or an autocad block reference). | ||
/// </summary> | ||
public class InstanceProxy : Base, IInstanceComponent | ||
{ | ||
/// <summary> | ||
/// The definition id as present in the original host app. On receive, it will be mapped to the newly created definition id. | ||
/// </summary> | ||
public string DefinitionId { get; set; } | ||
|
||
/// <summary> | ||
/// The transform of the instance reference. | ||
/// </summary> | ||
public Matrix4x4 Transform { get; set; } | ||
|
||
/// <summary> | ||
/// The units of the host application file. | ||
/// </summary> | ||
public string Units { get; set; } = Kits.Units.Meters; | ||
|
||
public int MaxDepth { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.