Class CachedTris
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
tstlNativeTopoStl3dTopo Stl
tstlfrNativeTopoStl3wfrTopo Stl with fraction tolerance
premat4d_tprevious transformation matrix
curmat4d_tcurrent transformation matrix
fractionTolerancedoublefraction tolerance for the operation
sweepingModeCachedTris.SweepingModemode 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
stlNativeTopoStl3dstl
matmat4d_ttransformation matrix
fractionTolerancedoublefraction tolerance for the operation
Properties
CachedTrisPtr
Native pointer of the object.
public nint CachedTrisPtr { get; }
Property Value
Methods
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bindBindBind 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
disposingbool
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
dstbox3d_tDestination box, expanded in place
~CachedTris()
protected ~CachedTris()