@huukhanhnguyen/model / nodeMethods/linearPart
nodeMethods/linearPart
foldLinearPart()
foldLinearPart(
dataList,part):LinearFoldResult
Fold a linear part's flat pattern (centerline + section) into a swept solid — see module doc.
Parameters
dataList
part
Returns
isLinearPart()
isLinearPart(
part):boolean
True when a part's flat pattern should be folded as a 1D bar/profile (swept along a centerline) instead of the 2D sheet-metal/wood path. The ONLY discriminator — see LinearPartRef's own doc.
Parameters
part
LinearPartRef | undefined
Returns
boolean
linearPartCutLength()
linearPartCutLength(
dataList,part):number
The exact developed/cutting length — see module doc.
Parameters
dataList
part
Returns
number