The ported normal calculation from ceed37fc5cbb466a0 neglected to
use the tilt attribute to rotate the normals around the tangents.
This commit adds that behavior back, adding a new math header file
to avoid duplicating the rotation function for normalized axes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
- Move function to a .cc file
| source/blender/blenkernel/intern/curves_geometry.cc | ||
|---|---|---|
| 759 | I guess it was a decision in favor of a longer term solution (a proper attribute API on CurvesGeometry) rather than adding accessor methods for every single named attribute. Tilt is a pretty generic attribute in the scheme of things, which makes me think the accessor methods are not really necessary for it long term. However I don't feel strongly about that at all, I'll add it if you prefer for sure. | |
| source/blender/blenkernel/intern/curves_geometry.cc | ||
|---|---|---|
| 759 | Well, tilt has an impact on evaluated_normals, so imo it is at least as important as those. I think having a separate accessor would be good. | |
| source/blender/blenlib/intern/math_rotation.cc | ||
| 14 | How about using something like BLI_ASSERT_UNIT_V3? | |
| source/blender/blenlib/intern/math_rotation.cc | ||
|---|---|---|
| 8 | Wrong header, I get a warning below because of that. | |