Class TopoTri3StockHfr
Stock (pool) of topological triangles.
Corresponds to C++ topo_tri3_stock_t.
public class TopoTri3StockHfr
- Inheritance
-
TopoTri3StockHfr
- Inherited Members
- Extension Methods
Constructors
TopoTri3StockHfr(int)
Initializes a new triangle stock with the specified capacity.
public TopoTri3StockHfr(int capacity)
Parameters
capacityint
Properties
Count
Gets the number of triangles.
public int Count { get; }
Property Value
Tris
Gets all triangles in the stock.
public IReadOnlyCollection<TopoTri3Hfr> Tris { get; }
Property Value
Methods
Del(TopoTri3Hfr)
Removes a triangle from the stock and cleans up connectivity. Thread-safe.
public void Del(TopoTri3Hfr src)
Parameters
srcTopoTri3Hfr
Gen(TopoLine3Hfr, TopoLine3Hfr, TopoLine3Hfr)
Creates a new triangle from three directed edges and adds it to the stock. Thread-safe.
public TopoTri3Hfr Gen(TopoLine3Hfr tl0, TopoLine3Hfr tl1, TopoLine3Hfr tl2)
Parameters
tl0TopoLine3Hfrtl1TopoLine3Hfrtl2TopoLine3Hfr
Returns
Gen(TopoPoint3Hfr, TopoPoint3Hfr, TopoPoint3Hfr, TopoLine3StockHfr)
Creates a new triangle from three points (automatically creating lines via the stock). Thread-safe.
public TopoTri3Hfr Gen(TopoPoint3Hfr tp0, TopoPoint3Hfr tp1, TopoPoint3Hfr tp2, TopoLine3StockHfr tlStock)
Parameters
tp0TopoPoint3Hfrtp1TopoPoint3Hfrtp2TopoPoint3HfrtlStockTopoLine3StockHfr