Class RelaxModifier
Applies relaxation to an infinite 2d plane, similar to MeshDataOperations.Relax.
Inheritance
System.Object
RelaxModifier
Assembly: Sylves.dll
Syntax
public class RelaxModifier : PlanarLazyGrid, IGrid
Constructors
RelaxModifier(IGrid, Single, Single, Int32, ICachePolicy)
Declaration
public RelaxModifier(IGrid underlying, float chunkSize = 10F, float weldTolerance = 1E-07F, int relaxIterations = 3, ICachePolicy cachePolicy = null)
Parameters
Type |
Name |
Description |
IGrid |
underlying |
|
System.Single |
chunkSize |
|
System.Single |
weldTolerance |
|
System.Int32 |
relaxIterations |
|
ICachePolicy |
cachePolicy |
|
Properties
CoordinateDimension
Declaration
public override int CoordinateDimension { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
Is2d
Declaration
public override bool Is2d { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Is3d
Declaration
public override bool Is3d { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsFinite
Declaration
public override bool IsFinite { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsOrientable
Declaration
public override bool IsOrientable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsPlanar
Declaration
public override bool IsPlanar { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsRepeating
Declaration
public override bool IsRepeating { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
IsSingleCellType
Declaration
public override bool IsSingleCellType { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Unbounded
Declaration
public override IGrid Unbounded { get; }
Property Value
Overrides
Methods
BoundBy(IBound)
Declaration
public override IGrid BoundBy(IBound bound)
Parameters
Type |
Name |
Description |
IBound |
bound |
|
Returns
Overrides
Combine(Cell, Cell)
Declaration
protected override Cell Combine(Cell childCell, Cell chunkCell)
Parameters
Type |
Name |
Description |
Cell |
childCell |
|
Cell |
chunkCell |
|
Returns
Overrides
GetAdjacentChunks(Cell)
Declaration
protected override IEnumerable<Cell> GetAdjacentChunks(Cell chunkCell)
Parameters
Type |
Name |
Description |
Cell |
chunkCell |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Cell> |
|
Overrides
GetCellTypes()
Declaration
public override IEnumerable<ICellType> GetCellTypes()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ICellType> |
|
Overrides
GetChildGrid(Cell)
Declaration
protected override IGrid GetChildGrid(Cell chunkCell)
Parameters
Type |
Name |
Description |
Cell |
chunkCell |
|
Returns
Overrides
Split(Cell)
Declaration
protected override (Cell, Cell) Split(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Type |
Description |
System.ValueTuple<Cell, Cell> |
|
Overrides
TryMove(Cell, CellDir, out Cell, out CellDir, out Connection)
Declaration
public override bool TryMove(Cell cell, CellDir dir, out Cell dest, out CellDir inverseDir, out Connection connection)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Implements