Class Index | File Index

Classes


Namespace foldAddition


Defined in: naview.js.

Namespace Summary
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.
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)

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Sep 08 2021 09:00:35 GMT-0300 (BRT)