Class TopoPoint3StockHfr
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
capacityint
Properties
Count
Gets the number of points.
public int Count { get; }
Property Value
Points
Gets all points in the stock.
public IEnumerable<TopoPoint3Hfr> Points { get; }
Property Value
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
vVec3Hfr
Returns
CallIfExisted(Vec3Hfr)
Gets an existing topological point at the given position, or null if not found. Thread-safe.
public TopoPoint3Hfr CallIfExisted(Vec3Hfr v)
Parameters
vVec3Hfr
Returns
Del(TopoPoint3Hfr)
Removes a point from the stock. Thread-safe.
public void Del(TopoPoint3Hfr tp)
Parameters
ExpandToBox3d(Box3d)
Expands a Box3d to include all points.
public void ExpandToBox3d(Box3d dst)
Parameters
dstBox3d