< Summary

Information
Class: GridForge.Grids.Topology.GridBoundaryContact
Assembly: GridForge
File(s): /home/runner/work/GridForge/GridForge/src/GridForge/Grids/Topology/GridBoundaryContact.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/GridForge/GridForge/src/GridForge/Grids/Topology/GridBoundaryContact.cs

#LineLine coverage
 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
 8using GridForge.Configuration;
 9
 10namespace GridForge.Grids.Topology;
 11
 12/// <summary>
 13/// Pairs an exact cell-contact manifold with both durable normalized grid identities.
 14/// </summary>
 15public 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    {
 831        SourceConfigurationKey = sourceConfigurationKey;
 832        TargetConfigurationKey = targetConfigurationKey;
 833        Contact = contact;
 834    }
 35}