Class Substraction
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
UnmanagedSubstractionThe 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
BinaryReaderThe binary reader to read data from.
Properties
ContactContours
Gets or sets the contact contours.
[BsonIgnore]
public List<List<Vec3d>> ContactContours { get; }
Property Value
ContactContoursArea
Gets the area of the contact contours.
[BsonElement]
public double ContactContoursArea { get; init; }
Property Value
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
StepIndex
Step index. For database saving.
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[BsonId]
public int StepIndex { get; set; }
Property Value
Methods
ContactContoursReadBin(BinaryReader)
Reads contact contours from a binary reader.
public static List<List<Vec3d>> ContactContoursReadBin(BinaryReader reader)
Parameters
reader
BinaryReaderThe binary reader to read from.
Returns
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
BinaryWriterThe 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
Box3dDestination box
WriteBin(BinaryWriter)
Writes the object's data to a binary stream.
public void WriteBin(BinaryWriter writer)
Parameters
writer
BinaryWriterThe binary writer to write to