Namespace foldAddition
Defined in: naview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Function to add horizontal folds on Simple, Bulb and Mushroom curves.
|
Namespace Detail
foldAddition
Function to add horizontal folds on Simple, Bulb and Mushroom curves.
Works by finding x centroid of current curve and y point connected to closest membrane (anchored centroid)
Folds are then created by creating copies of the curve points with scaled distances to this anchored centroid with the first and last points excluded.
Works by finding x centroid of current curve and y point connected to closest membrane (anchored centroid)
Folds are then created by creating copies of the curve points with scaled distances to this anchored centroid with the first and last points excluded.
- Parameters:
- {Array} resulting_points
- curve points to draw d3.curveNatural curve
- {Object} add_fold_obj
- Object part of style_obj describing shape of this horizontal fold (number of folds, relative heights)