Show / Hide Table of Contents

Class TransformModifier

Changes the world space positioning of the grid by a linear transform, leaving everything else unchanged.

Inheritance
System.Object
BaseModifier
TransformModifier
XZModifier
Implements
IGrid
Inherited Members
BaseModifier.GetCellTypes()
BaseModifier.GetCells()
BaseModifier.GetCellType(Cell)
BaseModifier.IsCellInGrid(Cell)
BaseModifier.TryMove(Cell, CellDir, Cell, CellDir, Connection)
BaseModifier.TryMoveByOffset(Cell, Vector3Int, Vector3Int, CellRotation, Cell, CellRotation)
BaseModifier.ParallelTransport(IGrid, Cell, Cell, Cell, CellRotation, Cell, CellRotation)
BaseModifier.GetCellDirs(Cell)
BaseModifier.GetCellCorners(Cell)
BaseModifier.FindBasicPath(Cell, Cell)
BaseModifier.GetIndex(Cell)
BaseModifier.GetCellByIndex(Int32)
BaseModifier.GetBound()
BaseModifier.GetBound(IEnumerable<Cell>)
BaseModifier.BoundBy(IBound)
BaseModifier.IntersectBounds(IBound, IBound)
BaseModifier.UnionBounds(IBound, IBound)
BaseModifier.GetCellsInBounds(IBound)
BaseModifier.IsCellInBound(Cell, IBound)
BaseModifier.FindGridSymmetry(ISet<Cell>, ISet<Cell>, Cell, CellRotation)
BaseModifier.TryApplySymmetry(GridSymmetry, IBound, IBound)
BaseModifier.TryApplySymmetry(GridSymmetry, Cell, Cell, CellRotation)
BaseModifier.Is2d
BaseModifier.Is3d
BaseModifier.IsPlanar
BaseModifier.IsRepeating
BaseModifier.IsOrientable
BaseModifier.IsFinite
BaseModifier.IsSingleCellType
BaseModifier.CoordinateDimension
BaseModifier.Unbounded
BaseModifier.Unwrapped
BaseModifier.Underlying
BaseModifier.IndexCount
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class TransformModifier : BaseModifier, IGrid

Constructors

TransformModifier(IGrid, Matrix4x4)

Declaration
public TransformModifier(IGrid underlying, Matrix4x4 transform)
Parameters
Type Name Description
IGrid underlying
Matrix4x4 transform

Properties

Transform

Declaration
public Matrix4x4 Transform { get; }
Property Value
Type Description
Matrix4x4

Methods

FindCell(Matrix4x4, out Cell, out CellRotation)

Declaration
public override bool FindCell(Matrix4x4 matrix, out Cell cell, out CellRotation rotation)
Parameters
Type Name Description
Matrix4x4 matrix
Cell cell
CellRotation rotation
Returns
Type Description
System.Boolean
Overrides
BaseModifier.FindCell(Matrix4x4, out Cell, out CellRotation)

FindCell(Vector3, out Cell)

Declaration
public override bool FindCell(Vector3 position, out Cell cell)
Parameters
Type Name Description
Vector3 position
Cell cell
Returns
Type Description
System.Boolean
Overrides
BaseModifier.FindCell(Vector3, out Cell)

GetCellCenter(Cell)

Declaration
public override Vector3 GetCellCenter(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
Vector3
Overrides
BaseModifier.GetCellCenter(Cell)

GetCellCorner(Cell, CellCorner)

Declaration
public override Vector3 GetCellCorner(Cell cell, CellCorner corner)
Parameters
Type Name Description
Cell cell
CellCorner corner
Returns
Type Description
Vector3
Overrides
BaseModifier.GetCellCorner(Cell, CellCorner)

GetCellsIntersectsApprox(Vector3, Vector3)

Declaration
public override IEnumerable<Cell> GetCellsIntersectsApprox(Vector3 min, Vector3 max)
Parameters
Type Name Description
Vector3 min
Vector3 max
Returns
Type Description
System.Collections.Generic.IEnumerable<Cell>
Overrides
BaseModifier.GetCellsIntersectsApprox(Vector3, Vector3)

GetDeformation(Cell)

Declaration
public override Deformation GetDeformation(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
Deformation
Overrides
BaseModifier.GetDeformation(Cell)

GetDual()

Declaration
public override IDualMapping GetDual()
Returns
Type Description
IDualMapping
Overrides
BaseModifier.GetDual()

GetMeshData(Cell, out MeshData, out Matrix4x4)

Declaration
public override void GetMeshData(Cell cell, out MeshData meshData, out Matrix4x4 transform)
Parameters
Type Name Description
Cell cell
MeshData meshData
Matrix4x4 transform
Overrides
BaseModifier.GetMeshData(Cell, out MeshData, out Matrix4x4)

GetPolygon(Cell, out Vector3[], out Matrix4x4)

Declaration
public override void GetPolygon(Cell cell, out Vector3[] vertices, out Matrix4x4 transform)
Parameters
Type Name Description
Cell cell
Vector3[] vertices
Matrix4x4 transform
Overrides
BaseModifier.GetPolygon(Cell, out Vector3[], out Matrix4x4)

GetTriangleMesh(Cell)

Declaration
public override IEnumerable<(Vector3, Vector3, Vector3, CellDir)> GetTriangleMesh(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
System.Collections.Generic.IEnumerable<System.ValueTuple<Vector3, Vector3, Vector3, CellDir>>
Overrides
BaseModifier.GetTriangleMesh(Cell)

GetTRS(Cell)

Declaration
public override TRS GetTRS(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
TRS
Overrides
BaseModifier.GetTRS(Cell)

Raycast(Vector3, Vector3, Single)

Declaration
public override IEnumerable<RaycastInfo> Raycast(Vector3 origin, Vector3 direction, float maxDistance = InfinityF)
Parameters
Type Name Description
Vector3 origin
Vector3 direction
System.Single maxDistance
Returns
Type Description
System.Collections.Generic.IEnumerable<RaycastInfo>
Overrides
BaseModifier.Raycast(Vector3, Vector3, Single)

Rebind(IGrid)

Declaration
protected override IGrid Rebind(IGrid underlying)
Parameters
Type Name Description
IGrid underlying
Returns
Type Description
IGrid
Overrides
BaseModifier.Rebind(IGrid)

Implements

IGrid
In This Article
Back to top Generated by DocFX