Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-03-18spelling cleanupCampbell Barton
2012-03-18bmesh py api:Campbell Barton
use different types for bm.verts.layers, bm.faces.layers, otherwise the layers look to have customdata type that isnt compatible, UV's on edges for eg.
2012-03-18code cleanup: not all mathutils callback creation functions tool unsigned ↵Campbell Barton
char for type & subtype args.
2012-03-18swap BMLoopCol r/b color, requires subversion bump.Campbell Barton
old mesh MCol 'r' was blue, 'b' was red, but theres no reason to keep this for bmesh with MLoopCol. Loading old files works, saving legacy format works too. What wont work is loading a file after this revision and loading it in an older revision since the bmesh merge. (it wont crash but the blue and red will be swapped on vertex color layers).
2012-03-17bmesh py api:Campbell Barton
access to MLoopCol as mathutils.Color type
2012-03-17minor mathutils code cleanup - use mathutils callbacks as unsigned chars ↵Campbell Barton
everywhere.
2012-03-17bmesh py api:Campbell Barton
added per loop UV layer access
2012-03-17bmesh py api:Campbell Barton
split up BMElemSeq into BMVertSeq, BMEdgeSeq, BMFaceSeq and BMLoopSeq Was becoming cumbersome since each needed their own new() function, and other methods only worked for some of these types. Added BMesh.loops - since you cant iterate over loops this is for customdata access only.
2012-03-17style cleanup: py/capiCampbell Barton
2012-03-16bmesh py api:Campbell Barton
initial support for editing bmesh customdata per vert/edge/face/loop shapes, crease, bevel weights working, missing UVs and Vertex Colors still.
2012-03-16bmesh py api:Campbell Barton
Wrap customdata, so far you can access the data layers in a pythonic way but not manipulate the customdata yet. provides dictionary like access to customdata layers, eg: texpoly = bm.faces.tex["UVMap"] print(bm.verts.shape.keys()) # un-intended pun, keys() works on all layers. print("MyInt" in bm.edges.int) # __contains__ layer = bm.faces.get("CheckForLayer")
2012-03-15missed these last commitCampbell Barton
2012-03-15prepare for adding bmesh py api for customdata layer access - no functional ↵Campbell Barton
changes.
2012-03-15comment cleanupCampbell Barton
2012-03-14mathutils py api:Campbell Barton
Vector.angle_signed(other) for 2D vectors to get the clockwise angle between them. in BLI math its called - angle_signed_v2v2() shorthand for... atan2f((v1[1] * v2[0]) - (v1[0] * v2[1]), dot_v2v2(v1, v2)) also corrects compile error in last commit.
2012-03-14bmesh py api: finished todo - editable select_historyCampbell Barton
eg: bm.select_history = vert, face, edge bm.select_history.add(edge)
2012-03-14documentation edit to address bmesh py api bug [#30453]Campbell Barton
warn when addons are not found when running cmake.
2012-03-13bmesh py api: more comprehensive intro page, also fix some spelling errors.Campbell Barton
2012-03-13bmesh python api:Campbell Barton
BMesh.select_history.remove/clear/validate functions.
2012-03-13workaround [#30480] Knife tool flickerCampbell Barton
the problem was numeric precision when in ortho mode the start/end points for the view vector would be 2000 apart which caused trouble for the intersection test.
2012-03-11remove Object member from BMesh struct - was only used for undo and ↵Campbell Barton
BMEditMesh already stores an object pointer. also fix for own mistake with mesh conversion refactor, shape key index was off by 1 when switching editmode.
2012-03-11[#30503] Callback for render job completionCampbell Barton
from Jason van Gumster (thefallenweeble) adds render_complete and render_cancel callbacks to bpy.app.handlers
2012-03-11bmesh python api additions:Campbell Barton
- BMesh.is_wrapped - BMesh.copy() - BMesh.clear() - BMesh.free() - BMesh.from_object(obj, apply_modifiers=True) - BMEdge.calc_length() - BMLoop.calc_normal() - BMLoop.calc_tangent()
2012-03-11bmesh py api - correct class references in docs and rename mesh conversion ↵Campbell Barton
funcs to ne less confusing.
2012-03-11bmesh py api: change .from_mesh() / .to_mesh() to be class methods of BMesh ↵Campbell Barton
rather than functions in the module. added example script which converts a mesh to a bmesh, edits and converts back again.
2012-03-11bmesh:Campbell Barton
- moved mesh conversion functions into their own file. bmesh py api: - can now create a new empty bmesh without first creating mesh data. - added function to copy bmesh data back to a mesh. - bmesh.from_mesh() can now get a mesh which isnt in editmode.
2012-03-10code cleanup: remove unused variable assignents and added bmesh submodule ↵Campbell Barton
links, doc correction reported by dfelinto.
2012-03-09style cleanup: comment blocksCampbell Barton
2012-03-09style cleanup: spelling.Campbell Barton
also remove large, duplicate comments from sunsky.h
2012-03-09added API function to C and pythonCampbell Barton
* C: BM_vert_separate(...) * py: bmesh.utils.vert_separate(vert, edges) This splits off regions around the vertex, splitting on connected edges passed in a sequence. also made minor changes - rename python api functions _rip to _separate - fixed bmesh iterator being iterable its self (some parts of python expect this) - fix memory leak in bmesh python api.
2012-03-09bmesh py api, new functions:Campbell Barton
* bmesh.utils.face_vert_rip(f, v) * bmesh.utils.loop_rip(l)
2012-03-08Add missing include.Nathan Letwory
2012-03-08style cleanup - spelling.Campbell Barton
2012-03-08use BLI_path_cmp() rather then strcmp()Campbell Barton
2012-03-06fix for own error in edge-rotate keeping edge customdata - this was crashing ↵Campbell Barton
when rotating multiple edges. Now create the rotate edge in advance and copy its customdata (before joining the faces). This commit also fixes an annoyance where tryangulating faces could create duplicate edges.
2012-03-06style cleanup, brackets in else/if, some indentation.Campbell Barton
2012-03-05edge rotate now keeps edge properties (like seam, crease, bevel weight.. etc)Campbell Barton
2012-03-05Improvements to bmesh edge rotateCampbell Barton
On a user level, edge rotate now works better with multiple edges selected, it wont make zero area faces or rotate edges into existing ones. With a single edge selected - rotate is less strict and will allow ugly resulting faces but still checks on duplicate edges. API: * BM_edge_rotate now takes a flag, to optionally... ** check for existing edge ** splice edge (rotate and merge) ** check for degenerate resulting faces (overlapping geometry, zero area) ** beauty - only rotate to a better fit. ... this allows it to still be used as a low level API function since all checks can be skipped. * BM_edge_rotate() now works a bit different, it find the new edge rotation before joining the faces - exposed by BM_edge_rotate_calc(). * Added api call bmesh_radial_faceloop_find_vert() - Radial Find a Vertex Loop in Face
2012-03-04fix for missing NULL check in bmesh.from_mesh(), bug [#30446]Campbell Barton
2012-03-04fix for issue raise by patch [#30154] non utf8 buildinfo, fails to import ↵Campbell Barton
'bpy' module. we cant ensure buildinfo to have utf8 encoding so access it as bytes via python - a different workaround then this patch made. also use C style string formatting for sys_info.py
2012-03-04fix for crash in bmesh py api, was missing NULL checks for parsing sequences ↵Campbell Barton
and had bad string formatting in exception.
2012-03-04bmesh py apiCampbell Barton
* add BLI_rfindlink for reverse index lookup (used so bm.select_history[-1] doesn't have to loop the entire list twice). * add bm.select_history.active so you can get the last selected item or None without having to check seq length.
2012-03-04style cleanup - comment formattingCampbell Barton
2012-03-03style cleanup - spelling corrections & update some incorrect comments.Campbell Barton
2012-03-03fix for error report in property registration, it wasnt printing the error.Campbell Barton
2012-03-02fix bug [#30426] crash in bmesh python api.Campbell Barton
if blender freed the BMesh before python was finished (on exit editmode for eg), python would attempt to access the bmesh to clear python pointers in it.
2012-03-01Spelling CleanupCampbell Barton
2012-02-29Mistake in previous commit test for API vert new: it failed for no-arg case.Howard Trickey
2012-02-29Code Cleanup: remove non existing function declarations.Campbell Barton
added some missing functions too - which are not used yep but should be there for api completeness. * CDDM_set_mloop * CDDM_set_mpoly * BLI_mempool_count
2012-02-29Fix 30401: Python API vert new((0,0,0)) crashes.Howard Trickey
Thanks to Campbell for fix, adding an & to an arg. Also needed to negate the sense of a later test.