Table of Contents

Class Substraction

Namespace
Hi.Cbtr
Assembly
HiCbtr.dll

Represents the result of a volume subtraction operation.

[BsonIgnoreExtraElements]
public class Substraction : IWriteBin, IExpandToBox3d
Inheritance
Substraction
Implements
Inherited Members
Extension Methods

Constructors

Substraction()

Ctor. for Entity Framework.

public Substraction()

Substraction(UnmanagedSubstraction)

Initializes a new instance of the Substraction class from an unmanaged substraction.

public Substraction(UnmanagedSubstraction unmanagedSubstraction)

Parameters

unmanagedSubstraction UnmanagedSubstraction

The unmanaged substraction to copy data from.

Substraction(BinaryReader)

Initializes a new instance of the Substraction class from a binary reader.

public Substraction(BinaryReader reader)

Parameters

reader BinaryReader

The binary reader to read data from.

Properties

ContactContours

Gets or sets the contact contours.

[BsonIgnore]
public List<List<Vec3d>> ContactContours { get; }

Property Value

List<List<Vec3d>>

ContactContoursArea

Gets the area of the contact contours.

[BsonElement]
public double ContactContoursArea { get; init; }

Property Value

double

ContactContoursByteArray

Gets or sets the byte array representation of the contact contours.

[BsonIgnore]
public byte[] ContactContoursByteArray { get; set; }

Property Value

byte[]

IsTouched

Gets a value indicating whether the cutter and workpiece touched.

[BsonElement]
public bool IsTouched { get; init; }

Property Value

bool

StepIndex

Step index. For database saving.

[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[BsonId]
public int StepIndex { get; set; }

Property Value

int

Methods

ContactContoursReadBin(BinaryReader)

Reads contact contours from a binary reader.

public static List<List<Vec3d>> ContactContoursReadBin(BinaryReader reader)

Parameters

reader BinaryReader

The binary reader to read from.

Returns

List<List<Vec3d>>

A list of contact contour lists.

ContactContoursWriteBin(List<List<Vec3d>>, BinaryWriter)

Writes contact contours to a binary writer.

public static void ContactContoursWriteBin(List<List<Vec3d>> contactContours, BinaryWriter writer)

Parameters

contactContours List<List<Vec3d>>

The contact contours to write.

writer BinaryWriter

The binary writer to write to.

ExpandToBox3d(Box3d)

Expands the destination box. This function is usually used to compute the bounding box of elements.

public void ExpandToBox3d(Box3d dst)

Parameters

dst Box3d

Destination box

WriteBin(BinaryWriter)

Writes the object's data to a binary stream.

public void WriteBin(BinaryWriter writer)

Parameters

writer BinaryWriter

The binary writer to write to