Api  chain Module
Index
Functions
chainFillet
cycle
dogbone

Adds a dogbone fillet between each link in a chain. Each path will be cropped to fit a fillet, and all fillets will be returned as paths in a returned model object.
Parameters

chainToFillet: IChain
The chain to add fillets to.

filletRadius: number
Radius of the fillet.
Returns IModel
Model object containing paths which fillet the joints in the chain.


Adds a dogbone fillet between each link in a chain. Each path will be cropped to fit a fillet, and all fillets will be returned as paths in a returned model object.
Parameters

chainToFillet: IChain
The chain to add fillets to.

filletRadii: object
Object specifying directional radii.

Optional left?: number
Radius of left turning fillets.

Optional right?: number
Radius of right turning fillets.

Returns IModel
Model object containing paths which fillet the joints in the chain.

fillet

Adds a fillet between each link in a chain. Each path will be cropped to fit a fillet, and all fillets will be returned as paths in a returned model object.
Parameters

chainToFillet: IChain
The chain to add fillets to.

filletRadius: number
Radius of the fillet.
Returns IModel
Model object containing paths which fillet the joints in the chain.


Adds a fillet between each link in a chain. Each path will be cropped to fit a fillet, and all fillets will be returned as paths in a returned model object.
Parameters

chainToFillet: IChain
The chain to add fillets to.

filletRadii: object
Object specifying directional radii.

Optional left?: number
Radius of left turning fillets.

Optional right?: number
Radius of right turning fillets.

Returns IModel
Model object containing paths which fillet the joints in the chain.

Private removeDuplicateEnds

Parameters

endless: boolean

points: IPoint[]
Returns void

reverse
startAt
toKeyPoints
toNewModel

Convert a chain to a new model, independent of any model from where the chain was found.
Parameters

chainContext: IChain
Chain to convert to a model.

Default value detachFromOldModel: boolean = false
Flag to remove the chain's paths from their current parent model. If false, each path will be cloned. If true, the original path will be reparented into the resulting new model. Default is false.
Returns IModel
A new model containing paths from the chain.

toPoints
Generated using TypeDoc
Shift the links of an endless chain.