Campbell Barton
88d1067f58
code cleanup: use BM_elem_flag_test rather then accessing 'ele->head.hflag'
2013-05-17 12:43:58 +00:00
Campbell Barton
c838b2d2a7
bmesh api: add 'is_boundary' attribute to verts.
2013-05-14 02:56:24 +00:00
Campbell Barton
c6702a3b91
use BM_face_create_ngon_verts for python api face creation
...
(avoid doing it inline).
2013-05-08 12:59:46 +00:00
Campbell Barton
0ffde4fae3
expose bmesh volume calculation to python api (use for print toolbox addon).
2013-05-07 00:00:32 +00:00
Campbell Barton
998b9241be
correct bmesh api crossref and update uv-operator template.
2013-05-05 05:54:29 +00:00
Bastien Montagne
4a8663d66e
A bit more clear error message...
2013-05-02 14:03:56 +00:00
Campbell Barton
edd6327455
remove direct freestyle data access from bmesh, was crashing and this should really only be done via customdata layer support.
2013-04-30 22:27:52 +00:00
Campbell Barton
1edf56e7a5
fix [ #35150 ] Crash when bmesh operation called from within a Panel draw()
...
accessing a bmesh from python would reallocate all customdata layers.
add an assert to BM_data_layer_free(), when its called unnecessarily since its reallocating all layers.
2013-04-29 20:21:19 +00:00
Campbell Barton
245a175a00
fix [ #34657 ] Smoothing will not be updated in object mode, when hiding faces in edit mode and changing shape.
...
remove the option to skip hidden faces in BM_mesh_normals_update, use openmp to speedup recalculation for high poly meshes.
2013-04-24 12:07:13 +00:00
Campbell Barton
be71c46b24
code cleanup: minor BMESH_TODO's, some were left in even though they were done/invalid.
2013-04-15 04:34:14 +00:00
Campbell Barton
6da961775f
code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-13 20:31:52 +00:00
Campbell Barton
c68ae745b6
interpolate verts as well as loops for inset.
...
- add vertex option to BM_face_interp_from_face, also expose via python.
2013-04-10 23:25:44 +00:00
Thomas Dinges
858ff6b696
Fix for [ #34898 ] Typo in error message of mathutils.Vector
...
* Also fixed some more cases of "more then" -> "more than".
2013-04-07 15:09:06 +00:00
Campbell Barton
63d523336f
freestyle lineset tag attribute was defined but not used, also some code cleanup.
2013-04-07 01:38:03 +00:00
Sergey Sharybin
acfc0ea511
svn merge ^/trunk/blender -r55815:55840
2013-04-06 13:24:34 +00:00
Campbell Barton
716ed32d90
fix [ #34870 ] bmesh.ops.* parameter lists and descriptions don't show in PyConsole on auto-complete
...
more a feature request then a bug but nice to have __doc__ on bmesh operators.
2013-04-05 19:58:18 +00:00
Campbell Barton
79e58c31a0
add BM_face_calc_center_mean_weighted() gives much better result at cost of some speed.
2013-04-05 19:26:33 +00:00
Campbell Barton
89926a0598
svn merge ^/trunk/blender -r55776:55813
2013-04-05 15:42:31 +00:00
Campbell Barton
12981b0048
fix [ #34881 ] Bad characters in error output (PyConsole) if trying to use a Bmesh UV Layer on a BMVert
2013-04-05 15:09:25 +00:00
Campbell Barton
5aee8b1487
py api, bmesh
...
- add BMEdge.calc_face_angle_signed() which gives a negative angle for for concave edges.
- add BMEdge.is_convex
2013-04-04 18:22:01 +00:00
Sergey Sharybin
4a0351cba2
Freestyle changes:
...
- Revert some stylistic changes made in branch
They weren't directly related on freestyle project
and better be handled in trunk. Helps reading patches
ad prevents possible merge conflicts.
- Solved issue introduced with recent deprecation of
RenderData.maximize,
2013-03-26 09:59:43 +00:00
Tamito Kajiyama
385c72f5f2
Merged changes in the trunk up to revision 55546.
...
Conflicts resolved:
source/blenderplayer/bad_level_call_stubs/SConscript
Partly reverted changes to intern/cycles/blender/addon/ui.py in revision 52899
to make it easier to merge trunk changes.
2013-03-24 12:13:13 +00:00
Tamito Kajiyama
865e80f0f4
Fix for missing -DWITH_FREESTYLE.
2013-03-22 23:04:14 +00:00
Campbell Barton
a79e10157d
code cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
...
also found unintentionally defined enum/struct variables that where only meant to be defining the type.
2013-03-22 05:34:10 +00:00
Tamito Kajiyama
c1ceab1281
Merged changes in the trunk up to revision 55357.
...
Resolved conflicts:
release/datafiles/startup.blend
source/blender/editors/space_nla/nla_buttons.c
Also updated source/blender/blenkernel/intern/linestyle.c as a follow-up of
recent changes for the use of bool.
2013-03-18 00:48:59 +00:00
Campbell Barton
0d0291f6e1
code cleanup: incorrect sized array args, remove some redundant code.
2013-03-17 10:26:23 +00:00
Campbell Barton
0807c976f4
code cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,
...
also correct odd indentation.
2013-03-15 10:48:48 +00:00
Tamito Kajiyama
894c240f9d
New implementation of Freestyle edge/face marks
...
The previous implementation of Freestyle edge/face marks was refactored
based on suggestions from the latest code review by Campbell. The new
implementation relies on mesh CustomData to store edge/face marks, instead
of introducing extra flags in the core Mesh and BMesh data structures.
The CustomData-based implementation will allow further additions of new
edge/face attributes because of the independence from Mesh/BMesh.
This revision is work in progress, mainly intended to address the review
comments and ask for further code review in view of the trunk merger in
the upcoming 2.67 release.
2013-03-13 06:44:43 +00:00
Campbell Barton
660be3da39
use gcc warning -Wredundant-decls, exposes some odd/duplicate declarations which have been removed.
2013-03-11 20:27:38 +00:00
Campbell Barton
f9f7070336
add STREQ macro (commonly used macro like CLAMP, MAX2, STRINGIFY). Use for some areas of the python api, bmesh.
2013-03-10 06:18:03 +00:00
Tamito Kajiyama
92436c94d3
Merged changes in the trunk up to revision 54594.
2013-02-16 18:38:03 +00:00
Campbell Barton
c6b3e0f8e4
style cleanup
2013-02-14 23:49:30 +00:00
Campbell Barton
0ec23efbf2
bmesh operators exceptions were not cleared after raising as a python exception.
...
also clear before calling the operator.
2013-02-13 04:55:05 +00:00
Campbell Barton
42feb45c5f
report [ #33731 ] Fastorigin addon crashes on mesh.update()
...
add a warning when python leaves the modified mesh without calling bmesh.update_edit_mesh()s.
this doesn't fix the crash but points to the likely cause.
2013-02-12 11:04:52 +00:00
Tamito Kajiyama
ac9ec06ec1
Merged changes in the trunk up to revision 54421.
...
Conflicts resolved:
release/datafiles/startup.blend
release/scripts/startup/bl_ui/properties_render.py
source/blender/SConscript
source/blender/blenloader/intern/readfile.c
2013-02-10 10:17:59 +00:00
Campbell Barton
4528405597
add BM_edge_is_contiguous(), check for python api.
2013-02-04 10:14:31 +00:00
Campbell Barton
69585591d6
Correct fix for r54164, the testcase I was using worked but different edge slide examples didn't.
...
Edge slide needed to check for concave ngons too.
add BM_loop_is_convex() and expose to python too.
2013-01-29 03:25:47 +00:00
Tamito Kajiyama
556912792a
Merged changes in the trunk up to revision 54110.
...
Conflicts resolved:
source/blender/blenfont/SConscript
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/rna_scene.c
2013-01-26 23:49:13 +00:00
Campbell Barton
b27854bd47
use booleans for bmesh api.
2013-01-14 16:42:43 +00:00
Tamito Kajiyama
94ae0232b0
Merged changes in the trunk up to revision 53729.
...
Conflicts resolved:
release/datafiles/startup.blend
source/blender/blenloader/intern/readfile.c
2013-01-12 02:02:53 +00:00
Campbell Barton
f9c87b86fc
partial fix for [ #32581 ] Mesh properties API does not allow for zeros in byte array
...
bmesh access allows zero bytes, support still needs adding via RNA.
2013-01-09 13:25:46 +00:00
Campbell Barton
e24443b79a
style cleanup
2013-01-09 03:30:15 +00:00
Howard Trickey
c598a306c4
Add normal_flip() member to Python BMesh's Face.
2013-01-07 12:19:00 +00:00
Tamito Kajiyama
feccbaabbd
Merged changes in the trunk up to revision 53584.
...
Conflicts resolved:
release/scripts/startup/bl_ui/properties_render.py
source/blender/blenloader/intern/readfile.c
source/blender/editors/interface/interface_templates.c
source/blender/makesrna/RNA_enum_types.h
Also made additional code updates for:
r53355 UIList - Python-extendable list of UI items
r53460 Alpha premul pipeline cleanup
2013-01-05 22:24:05 +00:00
Campbell Barton
daa2a0d1c3
use keyword args for bmesh.update_edit_mesh(...)
2012-12-27 07:27:28 +00:00
Tamito Kajiyama
40449b1994
Merged changes in the trunk up to revision 53280.
2012-12-23 00:23:11 +00:00
Tamito Kajiyama
a462d69bbf
Another big patch set by Bastien Montagne, thanks a lot!
...
* Made Freestyle optional (turned on by default).
* Fix for missing bpath.c updates in the previous merge of trunk changes.
2012-12-20 07:57:26 +00:00
Campbell Barton
56bfd3235c
fix [ #33616 ] Documentation not matching the behaviour of bmesh.utils
...
incorrect api docs
2012-12-19 11:18:08 +00:00
Tamito Kajiyama
d433cd65f7
Merged changes in the trunk up to revision 53146.
...
Conflicts resolved:
release/datafiles/startup.blend
source/blender/blenkernel/CMakeLists.txt
source/blender/blenlib/intern/bpath.c
source/blender/blenloader/intern/readfile.c
2012-12-19 01:49:58 +00:00
Tamito Kajiyama
62751e0da0
Made Freestyle Edge/Face Marks accessible from Python.
2012-12-18 00:07:25 +00:00