http://www.miikahweb.com/feed.php MiikaHweb - Blender Custom-normals-bmesh Branch http://www.miikahweb.com/ MiikaHweb - Blender Custom-normals-bmesh Branch fi Sun, 19 Jan 20 16:14:21 +0000 MiikaHweb RSS contact at miikahweb.com <![CDATA[[224edde]: Merge branch 'master' into custom-normals-bmesh]]> http://www.miikahweb.com/en/blender/git-logs/commit/224edde807d76dcccfdb2b204cfa1739d544eca0 224edde
Branches : custom-normals-bmesh
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into custom-normals-bmesh

----------------------------------------
0 Paths Changed]]>
Mon, 13 Jun 2016 10:36:24 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/224edde807d76dcccfdb2b204cfa1739d544eca0Bastien Montagne
<![CDATA[[af2d39d]: Minor docstring formatting edit]]> http://www.miikahweb.com/en/blender/git-logs/commit/af2d39d902c0e302a32b979a8d47ff8e067c0d65 af2d39d
Branches : custom-normals-bmesh
Author : Campbell Barton (campbellbarton)
----------------------------------------
Minor docstring formatting edit

----------------------------------------
1 Path Changed]]>
Thu, 09 Jun 2016 15:52:31 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/af2d39d902c0e302a32b979a8d47ff8e067c0d65Campbell Barton
<![CDATA[[5c4ea86]: Use mathutils_array_parse instead of inline array parsing]]> http://www.miikahweb.com/en/blender/git-logs/commit/5c4ea862b179332cad4cb9631542bd6b6accf9c3 5c4ea86
Branches : custom-normals-bmesh
Author : Campbell Barton (campbellbarton)
----------------------------------------
Use mathutils_array_parse instead of inline array parsing

Also fixes decref bug when None was given.

----------------------------------------
1 Path Changed]]>
Thu, 09 Jun 2016 15:46:05 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/5c4ea862b179332cad4cb9631542bd6b6accf9c3Campbell Barton
<![CDATA[[4cb6a32]: More minor changes:]]> http://www.miikahweb.com/en/blender/git-logs/commit/4cb6a326f740d8591f4fd4a228bac87bd351bb9f 4cb6a32
Branches : custom-normals-bmesh
Author : Campbell Barton (campbellbarton)
----------------------------------------
More minor changes:

- replace PyTuple_Pack with PyTuple_SET_ITEMS (avoids using varargs, and instead assign values directly).
- rename nbr_val -> value_len (consistent with value, value_items).

----------------------------------------
1 Path Changed]]>
Thu, 09 Jun 2016 15:24:33 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/4cb6a326f740d8591f4fd4a228bac87bd351bb9fCampbell Barton
<![CDATA[[d7b3bf1]: Cleanup: whitespace]]> http://www.miikahweb.com/en/blender/git-logs/commit/d7b3bf16147b1580710eb0346dd41b234e8dbeea d7b3bf1
Branches : custom-normals-bmesh
Author : Campbell Barton (campbellbarton)
----------------------------------------
Cleanup: whitespace

----------------------------------------
1 Path Changed]]>
Thu, 09 Jun 2016 15:20:22 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/d7b3bf16147b1580710eb0346dd41b234e8dbeeaCampbell Barton
<![CDATA[[89c978b]: Use PySequence_Fast_ITEMS for direct access]]> http://www.miikahweb.com/en/blender/git-logs/commit/89c978b14f72128defd484ec78ec0b8853233d7b 89c978b
Branches : custom-normals-bmesh
Author : Campbell Barton (campbellbarton)
----------------------------------------
Use PySequence_Fast_ITEMS for direct access

----------------------------------------
1 Path Changed]]>
Thu, 09 Jun 2016 15:16:50 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/89c978b14f72128defd484ec78ec0b8853233d7bCampbell Barton
<![CDATA[[399b56a]: Merge branch 'master' into custom-normals-bmesh]]> http://www.miikahweb.com/en/blender/git-logs/commit/399b56aacc0e227defc494ed67cdc8cf5c5c85a3 399b56a
Branches : custom-normals-bmesh
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into custom-normals-bmesh

----------------------------------------
0 Paths Changed]]>
Wed, 08 Jun 2016 10:34:12 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/399b56aacc0e227defc494ed67cdc8cf5c5c85a3Bastien Montagne
<![CDATA[[ade260a]: Merge branch 'master' into custom-normals-bmesh]]> http://www.miikahweb.com/en/blender/git-logs/commit/ade260aa7aaff50dd398c7511991ab9dcc98fc9d ade260a
Branches : custom-normals-bmesh
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into custom-normals-bmesh

----------------------------------------
0 Paths Changed]]>
Thu, 09 Jun 2016 13:45:26 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ade260aa7aaff50dd398c7511991ab9dcc98fc9dBastien Montagne
<![CDATA[[ae440c8]: BMesh clnor: Change py API.]]> http://www.miikahweb.com/en/blender/git-logs/commit/ae440c84fd4ed50988c7665bc118daee6f4c47ba ae440c8
Branches : custom-normals-bmesh
Author : Bastien Montagne (mont29)
----------------------------------------
BMesh clnor: Change py API.

After some talking with Campbell, this is now accessible through BMesh's CustomData system:

- clnor data is now exposed in BMesh (same way as for UVs etc.).
- You can now get/set **raw** values (pair of factors) of each loop independently.
This is not so useful in itself (though it allows nice 'relative' normal edition, given what
those two factors represent), getting/setting 'real' normals there is for later.
- You can now set all custom normals at once using the new 'from_array' method of BMLayerItem.
This is supposed to be generic setter, but for now it's only implemented for clnor data.

Some notes/reflections, also for future developments:
- About from_array:
* Do we accept that rather 'flexible' way of handling given array of data? think we do not have much choice
if we want to keep generic BMLayerItem (else we'll have to define sub-classes of this for every type of data :/ ).
* Currently clnor's from_array returns values actually set as a new array, not sure we want to keep this, or instead
add another 'to_array' method (in this case, how do we control type of returned data?).
- About clnors in BMesh in general:
* Think ultimately we'll want to have own struct of clnors in BMesh,
caching clnor spaces, encoded normal, real normal, etc.
* We'll then need to add lots of stuff to handle edition, in particular a system to rebuild clnor spaces
of affected loops each time we add/remove/modify geometry...

Latest point is important, since it means current BMesh py API will **not** be stable for now, and will
most certainly break when full support of custom normals is added to BMesh.

----------------------------------------
5 Paths Changed]]>
Wed, 08 Jun 2016 15:23:40 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ae440c84fd4ed50988c7665bc118daee6f4c47baBastien Montagne
<![CDATA[[d3f578c]: Initial work to allow custom normals setting in BMesh, with...]]> http://www.miikahweb.com/en/blender/git-logs/commit/d3f578c7e772e65189bcc94ba42ee75e7c7a75a5 d3f578c
Branches : custom-normals-bmesh
Author : Bastien Montagne (mont29)
----------------------------------------
Initial work to allow custom normals setting in BMesh, with quick bmesh py API call too.

Seems to be working OK from quick tests...

Some notes:
- This is mimicking BKE_mesh_evaluate code. While this is OK for some cases,
we'll likely want some more integrated and fine-grained ways to set/edit those
normals in Edit mode once we create real editing tools for those (most likely based
on some BMesh operators).
This implies some kind of dynamic caching/update of clnors spaces though, which
is not trivial. So kept for later, for now you have to set all custom normals at once.
- Not sure where/how to expose this in py API, for now just added a func in bmesh.utils.

----------------------------------------
5 Paths Changed]]>
Tue, 07 Jun 2016 19:55:28 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/d3f578c7e772e65189bcc94ba42ee75e7c7a75a5Bastien Montagne