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-24code cleanup: bmesh_ source files in our editor dir, they are the same as ↵Campbell Barton
other editmesh_ files.
2012-03-23Knifetool: add help message in header lineHoward Trickey
2012-03-19code cleanup: bmesh api - make arg order consistent - htype before hflag or ↵Campbell Barton
oflag.
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-13style cleanupCampbell Barton
2012-03-12Code cleanup: knife gathers pos-related state into a struct. No functional ↵Howard Trickey
change. This is in preparation for bug fixing and cleanup related to tracking of bmface and is_space state variables. And makes it more likely to avoid bugs in future where some part of state is copied but not all.
2012-03-12Make knifetool more robust against crashes. Fix some hole problems.Howard Trickey
Sometimes split would fail to make a face - make sure it doesn't crash if that happens. Chain finding code for holes would sometimes go back to same vertex on the face, which causes problems, so fixe that. Also, disallowed a cut that starts at a vertex or edge and cycles back to that same point in a face - this would make a face with a repeated vertex, which may not be handled by the rest of the system properly.
2012-03-09style cleanup: comment blocksCampbell Barton
2012-03-08Knifetool: change ESC to mean cancel, not confirm.Howard Trickey
This corresponds to the more usual convention. There was no key connected to Cancel, and we already have Return, Numpad-Return, and Right-click for confirm.
2012-03-07style cleanup: picky editsCampbell Barton
2012-03-07Knifetool uses direct cutting instead of scanfill: fixes bugs 29908, 28963, ↵Howard Trickey
30333. Knifetool accumulates a bunch of proposed cuts and when the user confirms, it makes them all. The old code did this by using scanfill to triangulate the cutting edges in their faces, and then merging triangles where possible. This sometimes ended up with strange lost faces, and also made it so that when holes were cut, the surrounding face ended up totally triangulated. But 29908 was an example of a lost face. This new code directly finds chains of cutting edges that go from one side of a face to the other and using BM_edge_split_n to make the cuts. Holes are handled by finding two good places where the hole can be connected to the containing face (using two because I think some other code in bmesh assumes that there are no edges that appear twice in a face). The old code is still there with #if SCANFILL_CUTS, so can easily revert if this proves to be a bad idea. Also, a small fix to previously added BM_split_n (forgot to copy face attributes to new face).
2012-03-07fix for bug in ED_view3d_project_float that only effected the 'Rip' tool.Campbell Barton
when the source and destination vectors were the same pointer, the X value would get overwritten. now the rip tool uses the best side to grab as in trunk.
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-06Fix to knifetool when intermediate point in space.Howard Trickey
Before, if you cut the same edge multiple times with an intermediate point in space, it wouldn't get all of the edges.
2012-03-05edge rotate now keeps edge properties (like seam, crease, bevel weight.. etc)Campbell Barton
2012-03-04style cleanup - comment spelling + translate some dutch.Campbell Barton
2012-03-02code cleanup:Campbell Barton
replace casts: '((Mesh *)ob->data)->edit_btmesh' with 'BMEdit_FromObject(ob)' also minor style edits.
2012-03-02Code Cleanup: update to mempool, use flag rather then bool args.Campbell Barton
2012-03-02bmmesh api - use struct rather than int[4] to initialize mesh sizes.Campbell Barton
also correct bad assert() in previous commit.
2012-03-01Spelling CleanupCampbell Barton
2012-02-28code cleanup: make clipping enable/disable into functions (was being done ↵Campbell Barton
inline in drawobject.c)
2012-02-27minor bmesh api naming edits.Campbell Barton
2012-02-27Few files had got +x mode which seems to be totally unnecessary.Sergey Sharybin
2012-02-27style cleanup (mostly whitespace)Campbell Barton
2012-02-27style cleanupCampbell Barton
2012-02-26bmesh code cleanupCampbell Barton
* change BMO_elem_flag_* defines to inline functions. * BMO_slot_map_insert() is too big for an inline function - un-inline it. * remove redundant casts.
2012-02-25style cleanup, use { on newline after function definition.Campbell Barton
spelling 'impliment' -> 'implement'
2012-02-25code cleanup: white space, spelling & ';;' end of lines.Campbell Barton
2012-02-20- remove some unused editmesh functions.Campbell Barton
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-17fix [#30220] Knife Tool Leaks memoryCampbell Barton
both crash and leak are fixed now.
2012-02-17fix [#30220] Knife Tool Crashes BlenderCampbell Barton
though there is still a memory leak, but it looks like the leak may be in BLI_smallhash.c, not knife code.
2012-02-16style cleanup for code relating to BMLoop next/prev checks. Campbell Barton
2012-02-13Code cleanup: add and use knife list utility functionsHoward Trickey
In preparation for code in progress that uses lists allocated out of the knife arena. This also makes existing code more readable and understandable IMO. Also removed an #if'd out function that will not ever be needed.
2012-02-13more bmesh minor api cleanupCampbell Barton
* remove BMO_elem_flag_* functions, since there are already defines for this. * ifdef unused bevel functions. * rename defines BMOP_ --> BMO_OP_
2012-02-12api name conventions, more minor changes: flag set/clear --> enable/disableCampbell Barton
2012-02-12BMesh api function naming.Campbell Barton
`_set` suffix was used in two ways (confusing) * to set a flag to be enabled. * to set a value passed as an argument. now use enable/disable rather then set/clear for functions which change flags. also remove BME_weld.c, the file didnt contain much code and the current extrude works well
2012-02-12code refactor, function renaming for bmesh.Campbell Barton
These changes are to make the bmesh api more consistent and easier to learn, grouping similar functions which is convenient for autocomplete. This uses similar convention to RNA. * use face/loop/edge/vert as a prefix for functions. * use 'elem' as a prefix too for functions that can take any type with a BMHeader. * changed from camel case to underscore separated (like RNA).
2012-02-11another include cleanupCampbell Barton
2012-02-11include cleanupCampbell Barton
2012-02-11GPL Header CleanupCampbell Barton
2012-02-10Style CleanupCampbell Barton
2012-02-07Style Cleanup:Campbell Barton
replace 0/1 with TRUE/FALSE define.
2012-02-07rename defines to upper case.Campbell Barton
2012-01-04Add ability to constrain knife cut angle to 0, 45, or 90 degreesHoward Trickey
Notes: - uses 'c' as toggle key in and out of angle snapping (aka constrain) mode - when in angle snapping mode, after first click, will constrain line to nears 0, 45, or 90 degree line - constraint is in screen space, not model space, so will usually be used in axis aligned view
2011-12-29Add code to make knife cut through whole mesh optionally.Howard Trickey
Notes: - only cuts through when the occlude geometry button is unpushed, else the old behavior - doesn't add points in middle of occluded faces yet, so will not make partial cuts or hole cuts in occluded faces; for best results, start and finish cuts completely outside the mesh - also made slight improvement to behavior when starting cut off the model - a small refactor: added knife_add_to_vert_edges for code used a number of times
2011-12-17svn merge ^/trunk/blender -r42669:42670Campbell Barton
2011-12-13formatting and minor refactor of some bmesh functions.Campbell Barton
* BM_Make_Quadtriangle --> BM_Make_Face_QuadTri_v * BM_Make_QuadTri --> BM_Make_Face_QuadTri
2011-12-10knife_project_v3 can call ED_view3d_project_float directly without having ↵Campbell Barton
its own check for ortho
2011-12-03fix for own error - r42200, broke knife tool edge/triangle intersection.Campbell Barton
2011-11-29Allow scanfill caller to specify boundary edges and use to fix knifetool ↵Howard Trickey
extra-face bug