C# Класс R3.Geometry.Recurse

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
m_background Vector3D

Открытые методы

Метод Описание
BranchAlongVerts ( Vector3D starting, Dictionary vertsToEdges, HashSet foundVertices ) : void
CalcCells ( Sphere mirrors, H3 cells ) : H3.Cell[]
CalcCells ( Sphere mirrors, H3 cells, Settings settings ) : H3.Cell[]
CalcCells2 ( Sphere mirrors, H3 cells ) : H3.Cell[]
CalcCells2 ( Sphere mirrors, H3 cells, Settings settings ) : H3.Cell[]
CalcEdges ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]
CalcEdges ( Sphere simplex, H3.Cell.Edge edges, Settings settings ) : R3.Math.Edge[]
CalcEdgesSmart ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]

Attempts to calculate approx 1.3M edges when the threshold is a distance from origin in the ball model. This works for honeycombs with finite cells.

CalcEdgesSmart2 ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]

Attempts to calculate approx 1.3M edges when the threshold is a minimum edge length. This is required for honeycombs with ideal or ultra-ideal cells

GenPolyhedron ( Sphere mirrors, H3 facets, List completedFacets, HashSet completedFacetIds ) : void

This generates a polyhedron using recursion. It needs to be finite (There are not any other breakouts of the recursion, other than all facets having been generated.)

Приватные методы

Метод Описание
CellOk ( H3 cell, Settings s ) : bool
DefaultThresh ( ) : double
EdgeOk ( H3.Cell.Edge edge, Settings s ) : bool
ReflectCellsRecursive ( Sphere simplex, H3 cells, Settings settings, List completedCells, HashSet completedCellIds ) : void
ReflectCellsRecursive2 ( Sphere simplex, H3 cells, Settings settings, List completedCells, HashSet completedCellIds ) : void
ReflectEdgesRecursive ( Sphere simplex, H3.Cell.Edge edges, Settings settings, HashSet completedEdges ) : void

Описание методов

BranchAlongVerts() публичный статический Метод

public static BranchAlongVerts ( Vector3D starting, Dictionary vertsToEdges, HashSet foundVertices ) : void
starting Vector3D
vertsToEdges Dictionary
foundVertices HashSet
Результат void

CalcCells() публичный статический Метод

public static CalcCells ( Sphere mirrors, H3 cells ) : H3.Cell[]
mirrors Sphere
cells H3
Результат H3.Cell[]

CalcCells() публичный статический Метод

public static CalcCells ( Sphere mirrors, H3 cells, Settings settings ) : H3.Cell[]
mirrors Sphere
cells H3
settings Settings
Результат H3.Cell[]

CalcCells2() публичный статический Метод

public static CalcCells2 ( Sphere mirrors, H3 cells ) : H3.Cell[]
mirrors Sphere
cells H3
Результат H3.Cell[]

CalcCells2() публичный статический Метод

public static CalcCells2 ( Sphere mirrors, H3 cells, Settings settings ) : H3.Cell[]
mirrors Sphere
cells H3
settings Settings
Результат H3.Cell[]

CalcEdges() публичный статический Метод

public static CalcEdges ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]
simplex Sphere
edges H3.Cell.Edge
Результат R3.Math.Edge[]

CalcEdges() публичный статический Метод

public static CalcEdges ( Sphere simplex, H3.Cell.Edge edges, Settings settings ) : R3.Math.Edge[]
simplex Sphere
edges H3.Cell.Edge
settings Settings
Результат R3.Math.Edge[]

CalcEdgesSmart() публичный статический Метод

Attempts to calculate approx 1.3M edges when the threshold is a distance from origin in the ball model. This works for honeycombs with finite cells.
public static CalcEdgesSmart ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]
simplex Sphere
edges H3.Cell.Edge
Результат R3.Math.Edge[]

CalcEdgesSmart2() публичный статический Метод

Attempts to calculate approx 1.3M edges when the threshold is a minimum edge length. This is required for honeycombs with ideal or ultra-ideal cells
public static CalcEdgesSmart2 ( Sphere simplex, H3.Cell.Edge edges ) : R3.Math.Edge[]
simplex Sphere
edges H3.Cell.Edge
Результат R3.Math.Edge[]

GenPolyhedron() публичный статический Метод

This generates a polyhedron using recursion. It needs to be finite (There are not any other breakouts of the recursion, other than all facets having been generated.)
public static GenPolyhedron ( Sphere mirrors, H3 facets, List completedFacets, HashSet completedFacetIds ) : void
mirrors Sphere
facets H3
completedFacets List
completedFacetIds HashSet
Результат void

Описание свойств

m_background публичное статическое свойство

public static Vector3D m_background
Результат Vector3D