Clément Foucault fclem
  • I'm pixel pusher.

  • Joined on 2014-07-09
Clément Foucault opened issue blender/blender#105070 2023-02-22 13:26:03 +01:00
GLSL: Cleanup Clip Space vs. NDC Space naming
Clément Foucault commented on pull request blender/blender#104941 2023-02-22 01:38:46 +01:00
Rotation C++ API

I got it to a point where I see no other changes to make.

EulerBase<AngleT> Template

I made use of AngleRadian<T> inside EulerBase so that we could make it templated if we wanted…

Clément Foucault commented on pull request blender/blender#104941 2023-02-22 01:25:31 +01:00
Rotation C++ API

BevPoint have this orientation coming out of get_curve_points_from_idx. So I think it is a pretty safe assumption to make.

If another basis was used (chosen?) for geometry node curves it…

Clément Foucault pushed to bli-math-rotation-cpp at fclem/blender 2023-02-22 01:05:45 +01:00
66a8a77eb1 AxisSigned/Axis: Wrap enums in classes for better semantics
657f440012 Euler: Make internal storage use AngleRadian for future proofing
a900d233f4 Cleanup: Remove leftover float literals
Compare 3 commits »
Clément Foucault pushed to bli-math-rotation-cpp at fclem/blender 2023-02-21 21:40:29 +01:00
b4e0cb90cc Cleanup: Address review comments
57c2c441d2 Euler: Fix occurences of the word shuffled where it was unclear
db1fb0998d Cleanup: Better variable names in conversion functions
6ec17ca670 Euler: Rework ijk / xyz ambiguity and allow assignement to both
42db9d0981 EulerXYZ: Simplify wrapperd_around
Compare 12 commits »
Clément Foucault commented on pull request blender/blender#104941 2023-02-21 21:34:37 +01:00
Rotation C++ API

I would think it was more for ease of use, discoverability and documentation purpose. But it can be removed if not wanted.

Clément Foucault commented on pull request blender/blender#104941 2023-02-21 21:07:37 +01:00
Rotation C++ API

Hell yeah, I hated thoses prefixes.

Clément Foucault commented on pull request blender/blender#104941 2023-02-21 21:05:11 +01:00
Rotation C++ API

Looking at the use of math::from_orthonormal_axes in fill_mesh_positions in curve_to_mesh_convert.cc (which I'd say would be the canonical example at this point?) it's hard to tell if this is…

Clément Foucault commented on issue blender/blender#104444 2023-02-21 19:40:33 +01:00
Rotation C++ API

I just want to write down one core design principle:

All rotation types should convert to other rotation types by conserving orientation. The data should never be re-interpreted during a…

Clément Foucault commented on pull request blender/blender#104856 2023-02-21 12:26:09 +01:00
BLI_math: improve the threshold for wrapping rotation in compatible_eul

Following up on this. It seems like just doing this is even doing better.

void compatible_eul(float eul[3], const float oldrot[3])
{
  for (uint i = 0; i < 3; i++) {
    eul[i] =…
Clément Foucault commented on pull request blender/blender#104941 2023-02-20 15:39:43 +01:00
Rotation C++ API

@dr.sybren

What's the reason to go for such a "this alias"? What's the added value of using eul.x() over this->x() or just x()?

This is in a conversion operator. Using this hides the…

Clément Foucault commented on pull request blender/blender#104941 2023-02-20 12:11:23 +01:00
Rotation C++ API

I looked up the meaning online and added more context to the comment.

Clément Foucault pushed to bli-math-rotation-cpp at fclem/blender 2023-02-20 02:27:49 +01:00
c39ab4cca5 AxisConversion: Improve documentation and cleanup, add TODOs
093fecff8e AxisConversion: Remove redundant static from inline function declaration
c518ffeeca AxisAngle: Move function to own file, rename AngleSinCos to AngleCartesian
f956c7d34d EulerXYZ: Make type interface follow Euler3
4fed0daa53 Euler3: Move and rename eEulerOrder into math namespace
Compare 8 commits »
Clément Foucault pushed to bli-math-rotation-cpp at fclem/blender 2023-02-19 18:21:49 +01:00
efdc1fbd2d AngleSinCos: Add operators from trig identities
441088b9b3 AngleRadian: Document, make API strictier, fix a few conversions
9db633b27f Fix building with draw test enabled
Compare 3 commits »
Clément Foucault commented on issue blender/blender#104444 2023-02-19 02:14:44 +01:00
Rotation C++ API

While a lot of cleanup is necessary, #104941 is a great start. We can start arguing about naming an other stuffs.

I went to the bottom of the pit to understand and comment all the code inside…

Clément Foucault created pull request blender/blender#104941 2023-02-19 02:00:51 +01:00
WIP: Rotation C++ API
Clément Foucault created branch bli-math-rotation-cpp in fclem/blender 2023-02-19 01:52:37 +01:00
Clément Foucault pushed to bli-math-rotation-cpp at fclem/blender 2023-02-19 01:52:37 +01:00
5580f5002b AxisAngle: Refactor to use different angle representation
61f8eefc8a Cleanup: Replace rotate by transform_point
5300811751 AxisConversion: Move axis_conversion to a class to use it as a rotation
5ecaaef9c2 Cleanup: Split BLI_math_rotation.hh into smaller file
54a789247e DualQuaternion: Add implementation for all functions
Compare 10 commits »