Table of Contents

Class TopoLine3StockHfr

Namespace
Hi.Geom.Topo
Assembly
HiDisp.dll

Stock (pool) of topological lines with deduplication based on endpoint identity. Corresponds to C++ topo_line3_stock_t.

public class TopoLine3StockHfr
Inheritance
TopoLine3StockHfr
Inherited Members
Extension Methods

Constructors

TopoLine3StockHfr(int)

Initializes a new line stock with the specified capacity.

public TopoLine3StockHfr(int capacity)

Parameters

capacity int

Properties

Count

Gets the number of lines.

public int Count { get; }

Property Value

int

Lines

Gets all lines in the stock.

public IEnumerable<TopoLine3Hfr> Lines { get; }

Property Value

IEnumerable<TopoLine3Hfr>

Methods

BuildAdjacentLineIfExisted(TopoLine3Hfr)

Builds the reversed line link for a single line if the reverse exists.

public void BuildAdjacentLineIfExisted(TopoLine3Hfr tl)

Parameters

tl TopoLine3Hfr

BuildAdjacentLinesIfExisted()

Builds reversed line links for all lines in the stock. Corresponds to C++ build_adjacent_lines_if_existed.

public void BuildAdjacentLinesIfExisted()

Call(TopoPoint3Hfr, TopoPoint3Hfr)

Gets or creates a topological line from p0 to p1. Thread-safe. If a line with the same endpoints already exists, returns the existing one.

public TopoLine3Hfr Call(TopoPoint3Hfr p0, TopoPoint3Hfr p1)

Parameters

p0 TopoPoint3Hfr
p1 TopoPoint3Hfr

Returns

TopoLine3Hfr

CallIfExisted(TopoPoint3Hfr, TopoPoint3Hfr)

Gets an existing topological line from p0 to p1, or null if not found. Thread-safe.

public TopoLine3Hfr CallIfExisted(TopoPoint3Hfr p0, TopoPoint3Hfr p1)

Parameters

p0 TopoPoint3Hfr
p1 TopoPoint3Hfr

Returns

TopoLine3Hfr

Del(TopoLine3Hfr)

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

public void Del(TopoLine3Hfr line)

Parameters

line TopoLine3Hfr