Table of Contents

Class TopoTri3StockHfr

Namespace
Hi.Geom.Topo
Assembly
HiDisp.dll

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

capacity int

Properties

Count

Gets the number of triangles.

public int Count { get; }

Property Value

int

Tris

Gets all triangles in the stock.

public IReadOnlyCollection<TopoTri3Hfr> Tris { get; }

Property Value

IReadOnlyCollection<TopoTri3Hfr>

Methods

Del(TopoTri3Hfr)

Removes a triangle from the stock and cleans up connectivity. Thread-safe.

public void Del(TopoTri3Hfr src)

Parameters

src TopoTri3Hfr

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

tl0 TopoLine3Hfr
tl1 TopoLine3Hfr
tl2 TopoLine3Hfr

Returns

TopoTri3Hfr

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

tp0 TopoPoint3Hfr
tp1 TopoPoint3Hfr
tp2 TopoPoint3Hfr
tlStock TopoLine3StockHfr

Returns

TopoTri3Hfr