d82c768cc7
bmesh py api, add another interpolation function.
...
BMVert.copy_from_vert_interp(vert_pair, fac)
2012-02-26 07:16:50 +00:00
1004b03578
bmesh - remove faces with <3 sides after dissolve/collapse (most tools already did this).
2012-02-26 05:48:12 +00:00
76acda4417
bmesh python api
...
* BMLoop attributes link_loop_next/prev
* BMVert.copy_from_face_interp
2012-02-25 23:56:20 +00:00
c65b3b73fd
bmesh api cleanup
...
* better type safety for BM_elem_flag_* and BM_elem_index_* functions.
* add BMElem type to be used where BMFace/Edge/Vert/Loop can be interchanged.
* fix bug in select manifold, found when making functions more strict.
2012-02-25 22:23:40 +00:00
001b8af4ff
Merged changes in the trunk up to revision 44436.
2012-02-25 21:11:29 +00:00
3fc2fbc333
style cleanup, use { on newline after function definition.
...
spelling 'impliment' -> 'implement'
2012-02-25 16:49:59 +00:00
6ca7d82932
code cleanup: white space, spelling & ';;' end of lines.
2012-02-25 16:04:03 +00:00
05725e7b6e
bmesh py api - add funcs
...
* BMFace.copy_from_face_interp(face)
* BMLoop.copy_from_face_interp(face, vert=True, multires=True)
These are important for rebuilding geometry from existing faces without loosing UV's, vcols etc.
2012-02-25 15:51:39 +00:00
69cf6adb84
fix for own regression in r44361 (broke BM_vert_in_face)
...
also fix py api: bmesh.utils.face_split(face, v1, v2)
2012-02-25 14:56:37 +00:00
9ca7f6659f
Merged changes in the trunk up to revision 44419.
...
Conflicts resolved:
doc/python_api/sphinx_doc_gen.py
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_view3d/drawobject.c
source/creator/CMakeLists.txt
2012-02-25 01:26:45 +00:00
aca448f0b6
bmesh py api - fix for error creating a new face
2012-02-24 13:50:36 +00:00
f7c9485605
bmesh python api:
...
bm.verts.get(verts) / bm.faces.get(verts)
- use to find an edge or face from a vertex list passed.
2012-02-24 12:57:05 +00:00
c839ff3acb
bmesh py api - bmesh.utils.face_flip
2012-02-24 11:04:09 +00:00
068566f985
bmesh py api - normal_update() functions for vert/edge/face.
2012-02-24 10:35:52 +00:00
c8d6b7759e
bmesh py api, minor change - edges now take a seq of 2: bm.verts.new((v1, v2), example=None)
2012-02-24 10:17:30 +00:00
edb04d1461
bmesh docs now written in sphinx doc generator.
...
* http://www.blender.org/documentation/blender_python_api_2_62_0/bmesh.types.html
* http://www.blender.org/documentation/blender_python_api_2_62_0/bmesh.utils.html
2012-02-24 09:53:29 +00:00
1fbd91b8a1
typo cleanup, no functional changes.
2012-02-24 06:44:04 +00:00
6b85b96952
bmesh py api (some api changes and doc additions)
...
* remove 'select' and 'hide' from BMLoop
* remove BMesh.update
* add BMesh.normal_update(skip_hidden=False)
* add BMElemSet.index_update(), eg: bm.verts.index_update()
bmesh api
* BM_mesh_normals_update() now takes skip_hidden as an argument
(previously this was default behavior), however this isnt good when
using BMesh modifiers, where you want all normals to be recalculated.
* add bm_iter_itype_htype_map[], to get the iter type from a BMesh
iterator.
2012-02-24 05:56:06 +00:00
b9b0c3dfb4
bmesh python api - add/improve rst docstrings.
2012-02-24 04:59:13 +00:00
6871860cfe
bmesh py api - ensure data layers to store bmesh pointers exist - removing all elements could free them for eg.
2012-02-23 17:22:37 +00:00
310af7d73f
bmesh py api
...
bmesh.utils.face_join(faces)
added a utility function for converting a list of python BMesh elements into a C array.
use for this face_join as well as BMesh.faces.new()
2012-02-23 17:14:53 +00:00
2fd226abe7
bmesh py api, added: bmesh.utils.edge_rotate(edge, ccw=False)
...
also improved docstrings.
2012-02-23 14:15:26 +00:00
7bc306c947
bmesh py api, new elements now take optional 'example' arguments, so the new data copies from the existing.
2012-02-23 11:27:22 +00:00
3034971520
bmesh py api functions:
...
bmesh.utils.vert_collapse_edge, vert_collapse_faces, vert_dissolve, face_split
2012-02-23 10:29:04 +00:00
0dc50a0e07
bmesh py api, new submodules
...
* bmesh.types, just allows access to BMVert, BMEdge etc.
* bmesh.utils, so far only added edge_split() function, this module will give access to mesh editing functions.
2012-02-23 05:20:09 +00:00
38f546a614
swap arg order for BM_edge_split(), makes sense to have edge as first
...
arg.
2012-02-23 05:17:07 +00:00
d232815481
- swap arg order for BM_face_copy() boolean options.
...
- use edge example for BM_face_split().
2012-02-23 04:26:24 +00:00
ecb6f13618
bmesh py api, more wrapped funcs:
...
* BMFace.copy(verts=True, faces=Trur)
* BMEdge.other_vert(vert)
2012-02-23 04:19:25 +00:00
30c62d9699
bmesh py api: functions for getting the area/angle/center of BMesh elements.
2012-02-23 03:39:39 +00:00
92c47145fd
bmesh python api change in internal behavior.
...
* Only have 1 python object per bmesh, vertex, edge, loop, face.
* Store pointers back to the python data in a custom data layer so as not to use more memory for normal editing operations (when pythons not running).
* Currently this data is created and freed along with the BMesh PyObject.
* Incidentally - this fixes comparisons for bmesh elements which wasnt working before.
2012-02-22 16:08:30 +00:00
ccfcc70c8c
add slice access to bmesh sequences.
...
eg:
verts = bm.verts[1:-7]
2012-02-22 12:54:53 +00:00
5123238f7d
BMesh-py attributes (readonly):
...
* is_valid (all types)
* is_wire (verts/edges)
* is_boundry (edge only)
* is_manifold (verts/edges)
also corrected own error, missed updating BMesh operator formatting char (broke erase only-faces)
2012-02-22 12:28:32 +00:00
0ca14d9558
bmesh py api add connectivity attributes - to access adjacent data.
2012-02-22 12:04:44 +00:00
361de47cf5
bmesh py api - function to remove vert/edge/faces
2012-02-22 11:52:56 +00:00
91353bc716
bmesh python api - add BMEdge.verts, also had to add VERTS_OF_EDGE iterator in bmesh's api.
2012-02-22 11:31:07 +00:00
e0a6d273d0
bmesh py api - generalize bmesg sequences to use the iterator type and optionally another bmesh element.
...
This allows BMFace.verts to be added without defining a new sequence type.
2012-02-22 10:41:07 +00:00
e7d98179ea
initial bmesh python api.
...
corrently allows to create and loop over verts/edges/faces, access selection and selection modes.
this is still WIP, access to face, edge verts is still missing, no access to UV's, no access to editing operations yet.
When the api is ready it will be documented by sphinx like mathutils, blf, aud.
2012-02-22 09:19:53 +00:00
3788adb8cb
utility functions to convert between flags / sets, without depending on RNA API.
2012-02-22 09:15:46 +00:00
1f40f01435
correct exception - was using a TypeError when should be a ValueError.
2012-02-22 09:13:29 +00:00
9f243d531c
Merged changes in the trunk up to revision 44288.
...
Conflicts resolved:
source/blender/blenkernel/intern/cdderivedmesh.c
2012-02-21 02:19:54 +00:00
c4e7cc3287
fix for leak in gpu.export_shader(), wasnt freeing the function.
...
also change the bmesh iterator so its possible to initialize without stepping.
2012-02-20 22:04:29 +00:00
910f04ca63
Merged changes in the trunk up to revision 44221.
...
Conflicts resolved:
release/datafiles/blender_icons.png
source/blender/blenkernel/intern/anim_sys.c
source/blender/blenloader/intern/readfile.c
2012-02-18 11:26:11 +00:00
61596d5bb3
patch [ #30227 ] Various MSVC (32-bit) Warning and Typo Fixes
...
made some small edits
- removed changes to AVI reading since the data types are apart of the format spec.
- absf -> abs for a double value in render code.
2012-02-17 19:21:47 +00:00
2b7ca2304a
unify include guard defines, __$FILENAME__
...
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-17 18:59:41 +00:00
5c5685f6c5
Merged changes in the trunk up to revision 44039.
2012-02-12 00:09:48 +00:00
b81bfd86b4
use ValueError when vector/matrix multiplications sizes are not supported, was using TypeError for mat*vec and ValueError for vec*mat.
2012-02-11 14:27:36 +00:00
5a42ff381c
correct 2 sphinx warnings.
2012-02-08 16:36:04 +00:00
1f74789d12
Correct mathutils documentation, also correct some python spelling errors and add makefile target check_spelling
2012-02-08 04:37:37 +00:00
4acab3eb33
Code Cleanup: line length and use Py_ssize_t for PyC_AsArray utility function.
2012-02-05 02:04:26 +00:00
8160829303
Merged changes in the trunk up to revision 43881.
2012-02-04 14:22:05 +00:00