Table of Contents

Class UnmanagedSubstraction

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

Data about the removing behavior of CubeTree.

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

Properties

ContactContours

Contact contours.

Each contour is composed by 3~12 points.

public List<List<vec3d_t>> ContactContours { get; }

Property Value

List<List<vec3d_t>>

Exceptions

ObjectDisposedException

First read after Dispose(): contours read before it stay readable.

ContactContoursArea

Gets the area of the contact contours.

public double ContactContoursArea { get; }

Property Value

double

Exceptions

ObjectDisposedException

First read after Dispose(): an area read before it stays readable.

IsTouched

Is the cutter and workpiece touched.

public bool IsTouched { get; }

Property Value

bool

Exceptions

ObjectDisposedException

Read after Dispose().

SubstractionPtr

Internal Use Only. The native pointer to the substraction object; Zero once Dispose() has deleted the object.

public nint SubstractionPtr { 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.

DisplayContours(Bind)

Display ContactContours by lines.

public void DisplayContours(Bind bind)

Parameters

bind Bind

bind

Exceptions

ObjectDisposedException

Called after Dispose() before the contours were ever read.

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

~UnmanagedSubstraction()

protected ~UnmanagedSubstraction()