Table of Contents

Class CachedTris

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

Feature-cached triangle for CubeTree computation.

public class CachedTris : IDisposable, IDisplayee, IExpandToBox3d
Inheritance
CachedTris
Implements
Inherited Members
Extension Methods

Constructors

CachedTris(NativeTopoStl3d, NativeTopoStl3wfr, mat4d_t, mat4d_t, double, SweepingMode)

Ctor by the swept stl. The sweeping is from the transformation of pre to cur.

public CachedTris(NativeTopoStl3d tstl, NativeTopoStl3wfr tstlfr, mat4d_t pre, mat4d_t cur, double fractionTolerance, CachedTris.SweepingMode sweepingMode = SweepingMode.Auto)

Parameters

tstl NativeTopoStl3d

Topo Stl

tstlfr NativeTopoStl3wfr

Topo Stl with fraction tolerance

pre mat4d_t

previous transformation matrix

cur mat4d_t

current transformation matrix

fractionTolerance double

fraction tolerance for the operation

sweepingMode CachedTris.SweepingMode

mode for the sweeping operation

CachedTris(NativeTopoStl3d, mat4d_t, double)

Ctor by the transformed stl. only available for geometry that does not contains near point or points on the same line on the same plane.

public CachedTris(NativeTopoStl3d stl, mat4d_t mat, double fractionTolerance)

Parameters

stl NativeTopoStl3d

stl

mat mat4d_t

transformation matrix

fractionTolerance double

fraction tolerance for the operation

Properties

CachedTrisPtr

Native pointer of the object.

public nint CachedTrisPtr { get; }

Property Value

nint

Methods

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind with DispEngine. See Bind.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

ExpandToBox3d(ref box3d_t)

Expands the destination box. This function is usually used to compute the bounding box of elements. box3d_t is a value type, so the destination is passed by reference (the C++ expand_to_box3d(box3&) shape); an implementation writes dst = dst.Expanded(...) or forwards ref dst to its parts.

public void ExpandToBox3d(ref box3d_t dst)

Parameters

dst box3d_t

Destination box, expanded in place

~CachedTris()

protected ~CachedTris()