Table of Contents

Class TopoPoint3StockHfr

Namespace
Hi.Geom.Topo
Assembly
HiDisp.dll

Stock (pool) of topological points with deduplication based on fraction coordinates. Corresponds to C++ topo_point3_stock_t.

public class TopoPoint3StockHfr
Inheritance
TopoPoint3StockHfr
Inherited Members
Extension Methods

Constructors

TopoPoint3StockHfr(int)

Initializes a new point stock with the specified capacity.

public TopoPoint3StockHfr(int capacity)

Parameters

capacity int

Properties

Count

Gets the number of points.

public int Count { get; }

Property Value

int

Points

Gets all points in the stock.

public IEnumerable<TopoPoint3Hfr> Points { get; }

Property Value

IEnumerable<TopoPoint3Hfr>

Methods

Call(Vec3Hfr)

Gets or creates a topological point at the given position. Thread-safe. If a point with the same coordinates already exists, returns the existing one.

public TopoPoint3Hfr Call(Vec3Hfr v)

Parameters

v Vec3Hfr

Returns

TopoPoint3Hfr

CallIfExisted(Vec3Hfr)

Gets an existing topological point at the given position, or null if not found. Thread-safe.

public TopoPoint3Hfr CallIfExisted(Vec3Hfr v)

Parameters

v Vec3Hfr

Returns

TopoPoint3Hfr

Del(TopoPoint3Hfr)

Removes a point from the stock. Thread-safe.

public void Del(TopoPoint3Hfr tp)

Parameters

tp TopoPoint3Hfr

ExpandToBox3d(Box3d)

Expands a Box3d to include all points.

public void ExpandToBox3d(Box3d dst)

Parameters

dst Box3d