Table of Contents

Class SweptableUtil

Namespace
Hi.Machining
Assembly
HiCbtr.dll

Util for Sweptable.

public static class SweptableUtil
Inheritance
SweptableUtil
Inherited Members

Methods

AddBySweepingVolume(CubeTree, IGetSweptable, mat4d_t, mat4d_t, double, double, bool, bool)

Add volume by sweeping volume — the boolean-union dual of RemoveBySweepingVolume(CubeTree, IGetSweptable, mat4d_t, mat4d_t, double, double, bool, bool). Deposits the swept solid into the geometry (additive manufacturing: weld / cladding / FDM bead), rather than removing it.

public static UnmanagedAddition AddBySweepingVolume(this CubeTree cubeTree, IGetSweptable sweptable, mat4d_t beginMat, mat4d_t endMat, double preferredCubeWidth = 0, double fractionTolerance = 0, bool enableBuildingContactContours = false, bool isAggressiveAdd = false)

Parameters

cubeTree CubeTree

geom to be volume-added

sweptable IGetSweptable

swaptable

beginMat mat4d_t

previous transformation matrix in sequence

endMat mat4d_t

current transformation matrix in sequence

preferredCubeWidth double

preferred cube width for the operation, defaults to cubeTree's resolution if 0

fractionTolerance double

fraction tolerance for the sweptable, defaults to preferredCubeWidth * 1e-4 if 0

enableBuildingContactContours bool

enable building contours of the newly created surface

isAggressiveAdd bool

whether to use aggressive adding mode

Returns

UnmanagedAddition

Addition

RemoveBySweepingVolume(CubeTree, IGetSweptable, mat4d_t, mat4d_t, double, double, bool, bool)

Remove volume by sweeping volume.

public static UnmanagedSubstraction RemoveBySweepingVolume(this CubeTree cubeTree, IGetSweptable sweptable, mat4d_t beginMat, mat4d_t endMat, double preferredCubeWidth = 0, double fractionTolerance = 0, bool enableBuildingContactContours = false, bool isAggressiveCut = false)

Parameters

cubeTree CubeTree

geom to be volume-removed

sweptable IGetSweptable

swaptable

beginMat mat4d_t

previous transformation matrix in sequence

endMat mat4d_t

current transformation matrix in sequence

preferredCubeWidth double

preferred cube width for the operation, defaults to cubeTree's resolution if 0

fractionTolerance double

fraction tolerance for the sweptable, defaults to preferredCubeWidth * 1e-4 if 0

enableBuildingContactContours bool

enable building contact contours

isAggressiveCut bool

whether to use aggressive cutting mode

Returns

UnmanagedSubstraction

Removal