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

Get key points (a minimal a number of points) along a chain of paths.
Parameters

chainContext: IChain
Chain of paths to get points from.

Optional maxArcFacet: number
The maximum length between points on an arc or circle.
Returns IPoint[]
Array of points which are on the chain.

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

Get points along a chain of paths.
Parameters

chainContext: IChain
Chain of paths to get points from.

distanceOrDistances: number  number[]

Optional maxPoints: number
Maximum number of points to retrieve.
Returns IPoint[]
Array of points which are on the chain spread at a uniform interval.

Generated using TypeDoc
Shift the links of an endless chain.