Class ConnectVertexStrategy
Connect strategy creates edges between new vertex created from base position and any number of given vertices.
Inheritance
System.Object
ConnectVertexStrategy
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Spatial.AdaptiveGrid
Assembly: Hypar.Elements.dll
Syntax
public class ConnectVertexStrategy : IAddVertexStrategy
Constructors
ConnectVertexStrategy(Vertex[])
Create new Connect strategy.
Declaration
public ConnectVertexStrategy(params Vertex[] connections)
Parameters
Type | Name | Description |
---|---|---|
Vertex[] | connections | Vertices to connect with. |
Methods
Add(AdaptiveGrid, Vector3, Boolean)
Function called by grid were new vertices are added and connected.
Declaration
public Vertex Add(AdaptiveGrid grid, Vector3 position, bool cut)
Parameters
Type | Name | Description |
---|---|---|
AdaptiveGrid | grid | Grid to add vertices into |
Vector3 | position | Position of base vertex. |
System.Boolean | cut | Should new edges be automatically cut with the rest of the grid. |
Returns
Type | Description |
---|---|
Vertex |