Class MeshTopologyBuilder
Builds a GraphTopology that represents a mesh, i.e. a series of faces that connect to each other along their edges.
Inheritance
object
MeshTopologyBuilder
Namespace: DeBroglie.Topo
Assembly: DeBroglie.dll
Syntax
public class MeshTopologyBuilder
Constructors
| Edit this page View SourceMeshTopologyBuilder(DirectionSet)
Declaration
public MeshTopologyBuilder(DirectionSet directions)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectionSet | directions |
Methods
| Edit this page View SourceAdd(int, int, Direction)
Registers face1 and face2 as adjacent, moving in direction from face1 to face2. If you call this, you will also need to call add with face1 and face2 swapped, to establish the direction when travelling back.
Declaration
public void Add(int face1, int face2, Direction direction)
Parameters
| Type | Name | Description |
|---|---|---|
| int | face1 | |
| int | face2 | |
| Direction | direction |
Add(int, int, Direction, Direction)
Registers face1 and face2 as adjacent, moving in direction from face1 to face2 and inverseDirection from face2 to face1.
Declaration
public void Add(int face1, int face2, Direction direction, Direction inverseDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| int | face1 | |
| int | face2 | |
| Direction | direction | |
| Direction | inverseDirection |
GetInfo()
Declaration
public GraphInfo GetInfo()
Returns
| Type | Description |
|---|---|
| GraphInfo |
GetTopology()
Declaration
public GraphTopology GetTopology()
Returns
| Type | Description |
|---|---|
| GraphTopology |