Bcc.ChamferChainList
Bcc.ChamferChainList({ChainList, ChamferMethod, FirstDistance, SecondDistance, Angle})
Description
This function is utilized create a chamfer along any corners of a chain.
Parameters
The primary input of this function is a Table which can include the following keys:
- ChainList – The input chain to have chamfers applied. Can be of types: Polyline, ContourList, ContourChain
- ChamferMethod - integer value representing the chamfer creation method:
- 0: Angle and First Distance
- 1: Angle and Second Distance
- 2: First Distance and Second Distance
- FirstDistance – double value of the distance of the first chamfer side
- SecondDistance – double value of the distance of the second chamfer side
- Angle - the angle of chamfer relative to the direction of the chain
Return
Returns an array of ContourChain lists
Examples
-- Define a 50mm square in a counterclockwise direction
pnt1 = { -25,-25, 0}
pnt2 = { 25,-25, 0}
pnt3 = { 25, 25, 0}
pnt4 = { -25, 25, 0}
-- Create the chain utilizing the points
chainList = {{Type="Polyline", List={pnt1, pnt2, pnt3, pnt4}}
-- Add 5mm chamfers to all corners of the chain
-- Store the resulting chain in retList
retList = Bcc.ChamferChainList({ChainList=chainList, ChamferMethod=0, FirstDistance=5, Angle=60})
retList1 = Bcc.ChamferChainList({ChainList=chainList, ChamferMethod=1, SecondDistance=5, Angle=60})
retList2 = Bcc.ChamferChainList({ChainList=chainList, ChamferMethod=2, FirstDistance=5, SecondDistance=5})