Class SweptableUtil
Util for Sweptable.
public static class SweptableUtil
- Inheritance
-
SweptableUtil
- Inherited Members
Methods
AddBySweepingVolume(CubeTree, IGetSweptable, Mat4d, Mat4d, double, double, bool, bool)
Add volume by sweeping volume — the boolean-union dual of RemoveBySweepingVolume(CubeTree, IGetSweptable, Mat4d, Mat4d, 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 beginMat, Mat4d endMat, double preferredCubeWidth = 0, double fractionTolerance = 0, bool enableBuildingContactContours = false, bool isAggressiveAdd = false)
Parameters
cubeTreeCubeTreegeom to be volume-added
sweptableIGetSweptableswaptable
beginMatMat4dprevious transformation matrix in sequence
endMatMat4dcurrent transformation matrix in sequence
preferredCubeWidthdoublepreferred cube width for the operation, defaults to cubeTree's resolution if 0
fractionTolerancedoublefraction tolerance for the sweptable, defaults to preferredCubeWidth * 1e-4 if 0
enableBuildingContactContoursboolenable building contours of the newly created surface
isAggressiveAddboolwhether to use aggressive adding mode
Returns
- UnmanagedAddition
Addition
RemoveBySweepingVolume(CubeTree, IGetSweptable, Mat4d, Mat4d, double, double, bool, bool)
Remove volume by sweeping volume.
public static UnmanagedSubstraction RemoveBySweepingVolume(this CubeTree cubeTree, IGetSweptable sweptable, Mat4d beginMat, Mat4d endMat, double preferredCubeWidth = 0, double fractionTolerance = 0, bool enableBuildingContactContours = false, bool isAggressiveCut = false)
Parameters
cubeTreeCubeTreegeom to be volume-removed
sweptableIGetSweptableswaptable
beginMatMat4dprevious transformation matrix in sequence
endMatMat4dcurrent transformation matrix in sequence
preferredCubeWidthdoublepreferred cube width for the operation, defaults to cubeTree's resolution if 0
fractionTolerancedoublefraction tolerance for the sweptable, defaults to preferredCubeWidth * 1e-4 if 0
enableBuildingContactContoursboolenable building contact contours
isAggressiveCutboolwhether to use aggressive cutting mode
Returns
- UnmanagedSubstraction
Removal