Bevel Factor Mapping

Bevel Factor Mapping allows to control the relation between bevel factors
(number between 0 and 1) and the rendered start and end point of a beveled
spline.

There are three options: "Resolution", "Segments", "Spline". "Resolution"
option maps bevel factors as it was done < 2.71, "Spline" and "Segments"
are new.

* "Resolution“: Map the bevel factor to the number of subdivisions of a
  spline (U resolution).
* "Segments“: Map the bevel factor to the length of a segment and to the
  number of subdivisions of a segment.
* "Spline": Map the bevel factor to the length of a spline.

Reviewers: yakca, sergey, campbellbarton

CC: sanne

Differential Revision: https://developer.blender.org/D294
This commit is contained in:
Lukas Treyer
2014-03-28 16:41:56 +06:00
committed by Sergey Sharybin
parent 3977b7612f
commit 97cb76a45d
6 changed files with 188 additions and 24 deletions

View File

@@ -183,13 +183,22 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
col.prop(curve, "bevel_object", text="")
col = layout.column(align=True)
col.prop(curve, "bevel_factor_start")
col.prop(curve, "bevel_factor_end")
row = col.row()
row.active = (curve.bevel_object is not None)
row.prop(curve, "use_fill_caps")
row.label(text="Bevel Factor:")
col = layout.column()
col.active = (curve.bevel_depth > 0 or curve.bevel_object is not None)
row = col.row(align=True)
row.prop(curve, "bevel_factor_mapping_start", text="")
row.prop(curve, "bevel_factor_start", text="Start")
row = col.row(align=True)
row.prop(curve, "bevel_factor_mapping_end", text="")
row.prop(curve, "bevel_factor_end", text="End")
row = layout.row()
row.active = curve.bevel_object is not None
row.prop(curve, "use_map_taper")
row.prop(curve, "use_fill_caps")
class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):