Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_pe.h
- This file was added.
| /* Proportional editing tools */ | |||||
| /* Calculates PE factors given the distances | |||||
| * - totdata --- lengts of in_dists and out_factors | |||||
| * - in_dists --- distances array, index-based | |||||
| * - out_factors --- factors array, index-based */ | |||||
| void BLI_pe_compute_factors(int totdata, float *in_dists, float *out_factors, float prop_size, int prop_type); | |||||
| /* Calculates PE factor based on the distance, PE distance and selected PE falloff interpolator, | |||||
| * clamps to [0.0f-1.0f] | |||||
| * The interpolators can be: | |||||
| * PROP_SMOOTH | |||||
| * PROP_SPHERE | |||||
| * PROP_ROOT | |||||
| * PROP_SHARP | |||||
| * PROP_LIN | |||||
| * PROP_CONST | |||||
| * PROP_RANDOM | |||||
| * from DNA_scene_types.h */ | |||||
| float BLI_pe_factor_distance(float dist, float prop_size, int prop_type); | |||||