| | | 1 | | //======================================================================= |
| | | 2 | | // GridBoundaryContact.cs |
| | | 3 | | //======================================================================= |
| | | 4 | | // MIT License, Copyright (c) 2024-present David Oravsky (mrdav30) |
| | | 5 | | // See LICENSE file in the project root for full license information. |
| | | 6 | | //======================================================================= |
| | | 7 | | |
| | | 8 | | using GridForge.Configuration; |
| | | 9 | | |
| | | 10 | | namespace GridForge.Grids.Topology; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// Pairs an exact cell-contact manifold with both durable normalized grid identities. |
| | | 14 | | /// </summary> |
| | | 15 | | public readonly struct GridBoundaryContact |
| | | 16 | | { |
| | | 17 | | /// <summary>The canonical source grid identity.</summary> |
| | | 18 | | public GridConfigurationKey SourceConfigurationKey { get; } |
| | | 19 | | |
| | | 20 | | /// <summary>The canonical target grid identity.</summary> |
| | | 21 | | public GridConfigurationKey TargetConfigurationKey { get; } |
| | | 22 | | |
| | | 23 | | /// <summary>The exact contact between the source and target cells.</summary> |
| | | 24 | | public VoxelContactManifold Contact { get; } |
| | | 25 | | |
| | | 26 | | internal GridBoundaryContact( |
| | | 27 | | GridConfigurationKey sourceConfigurationKey, |
| | | 28 | | GridConfigurationKey targetConfigurationKey, |
| | | 29 | | VoxelContactManifold contact) |
| | | 30 | | { |
| | 8 | 31 | | SourceConfigurationKey = sourceConfigurationKey; |
| | 8 | 32 | | TargetConfigurationKey = targetConfigurationKey; |
| | 8 | 33 | | Contact = contact; |
| | 8 | 34 | | } |
| | | 35 | | } |