5f613886ef
fix range for face distortion and display for concave ngons.
2013-04-18 09:12:06 +00:00
8a06acfd7a
add mesh distort display mode (highlights distorted faces)
2013-04-18 04:24:18 +00:00
9cceec40c4
use modified vertex coords for calculating display thickness and intersections.
...
internal improvement to editmesh_bvh.c
- optionally pass cage-coords as an arg, rather then calculating the coords in BKE_bmbvh_new(),
since all callers already have coords calculated.
- de-duplicate coords creation function from knife and bmbvhm, move into own generic function: BKE_editmesh_vertexCos_get()
2013-04-18 01:20:04 +00:00
4a7feafa49
Support object scale for mesh display options. (currently only uniform scale for thickness test)
2013-04-17 23:30:19 +00:00
14f9f167b2
display options to help with 3d printing.
...
editmesh debug info,
- overhang (with axis angle options)
- wall thickness (with min/max distance)
- self-intersections.
access below 'Mesh Display' panel.
2013-04-17 09:27:23 +00:00
37e73aa368
code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and BKE_editmesh_bvh.h
2013-04-16 05:59:48 +00:00
77da6b3662
move editmesh functions out editderivedmesh.c into editmesh.c
2013-04-16 05:46:17 +00:00
81cfbaacb0
code cleanup: edit-derived-mesh, define 'BMesh *bm' as local variable, avoid 'bmdm->em->bm' within functions.
2013-04-13 20:58:49 +00:00
5996242291
fix for error in editmesh derived callbacks, emDM_getVert(), emDM_getEdge(), emDM_getTessFace().
...
Currently the functions aren't used since they would fail have failed immediately.
2013-04-13 20:40:34 +00:00
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
31c375b97a
Mesh Drawing:
...
Option to draw mesh vertex-weights in editmode, available from the 'Mesh Display' panel.
TODO: get this to work when modifiers are applied in solid mode (texface-solidmode is working).
2013-04-13 20:20:21 +00:00
e1c9353c94
code cleanup: more minor changes for editmesh face drawing.
2013-04-13 18:11:27 +00:00
4d1e8cec1a
code cleanup: editmesh draw functions, make face drawing more consistent.
2013-04-13 17:57:11 +00:00
375c0144c8
fix [ #34378 ] GLSL materials using multiple UV layers fail in editmode
...
regression since BMesh merge.
2013-02-23 06:56:10 +00:00
0c53fb3a92
code cleanup: make editmode PASSATTRIB into static functions.
2013-02-23 05:36:15 +00:00
296444e1dc
style cleanup: some warnigs & spelling.
2013-02-06 14:02:19 +00:00
88dd983f3c
fix regression in own recent commit, vertex flags were left uninitialized.
2013-01-21 09:54:33 +00:00
b27854bd47
use booleans for bmesh api.
2013-01-14 16:42:43 +00:00
0c3e570868
remove CustomData_get_active_offset(), use CustomData_get_offset to return the active layer, matching CustomData_get()
2013-01-11 01:41:27 +00:00
c3c3df3aec
editmesh texface drawing, reuse customdata offset rather then looking up each UV and vertex color, gives overall ~9.5% drawing speedup in my tests.
...
was also doing NULL checks on UV's which are never NULL in this case.
2013-01-10 12:07:01 +00:00
ceb9701507
don't store bevel weights or edge crease customdata layers in editmode unless they are needed.
...
configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
2013-01-10 04:43:31 +00:00
97d1abfe95
speedup for editmesh getVert and getEdge, were doing 2x customdata layer lookups for crease and bevel weight, also make use of the existing meshdata array for lookups.
2013-01-09 18:20:11 +00:00
f0c1bc830c
add option to BLI_scanfill_calc() - BLI_SCANFILL_CALC_HOLES, gives some speedup for BMesh ngons which never have holes and ensures predictable triangle count (totvert - 2), which is needed for pre-calculating array size.
2012-12-27 06:39:27 +00:00
89364fd0fa
remove realloc's during BMEdit_RecalcTessellation(), instead use poly_to_tri_count() to calculate how many triangles are needed.
2012-12-27 04:18:22 +00:00
f576c281ba
speedup for face tessellation:
...
- quads, tris now use direct pointer access rather then iterators.
- for ngons also avoid iterator, just loop over the loops.
also minor change, use floorf rather then floor for ED_view3d_project_short_ex, ED_view3d_project_int_ex
2012-12-21 07:24:31 +00:00
a6bee579e9
move pbvh into BKE, it used many BKE bad level includes.
...
now blenlib/BLI doesn't depend on any blenkern/BKE functions,
there are still some bad level includes but these are only to access G.background and the blender version define.
2012-12-15 15:59:25 +00:00
cf723e5e7c
use htype flags as arguments to EDBM_index_arrays_init(), no functional changes.
2012-12-12 05:27:52 +00:00
0526fcf13f
revert part of r52720, Id rather leave these as-is, even if they give warnings under some configurations.
2012-12-03 08:11:04 +00:00
818a345be3
Silent a bunch of gcc warnings (usually dummy, but noisy!).
2012-12-02 16:01:06 +00:00
f9e339ef00
fix/workaround [ #33281 ] script goes into not responding
...
scanfill remove-doubles pass assumes ordered edges (as with curves), otherwise it can hang.
workaround this problem by skipping removing-doubles for mesh ngons, since this isnt such a common case as it is with curves and we can just not support it.
2012-11-26 23:18:04 +00:00
f5d3e361ce
fix for missing NULL check in init_render_texture() (possibly own fault), also remove some redundant code.
2012-09-19 08:09:22 +00:00
e647c748fb
fix [ #32518 ] Vertex slide crash sometimes.
...
Undo would leave BMEditMesh->me pointer NULL, this would likely crash EDBM_verts_mirror_cache_begin() too.
Rather then restore 'me', remove the pointer altogether and use BMEditMesh->ob->data to save us having to keep track of 2 pointers.
2012-09-10 03:42:29 +00:00
2812dd92cf
code cleanup: use BMEdit_FromObject() rather then me->edit_btmesh in more places.
2012-09-10 03:34:43 +00:00
e9caa21830
fix own error in recent smoothview cleanup, also correct some cross references in bmesh docs.
2012-08-17 14:43:20 +00:00
1931aac1f7
style cleanup: (indentation)
2012-06-06 14:48:39 +00:00
b33f0ef0e3
style cleanup
2012-05-27 19:40:36 +00:00
417ac69320
Draw skin vertex roots in edit mode.
...
Roots are drawn with a view-oriented dashed red circle around the
vertex location. The circle's radius is the average if the skin
vertex's X and Y radii.
Skin modifier documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/SkinModifier
2012-05-22 15:29:27 +00:00
af3e348430
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
2012-05-19 13:28:19 +00:00
599d213115
style cleanup: line length and ensure some macros error when not ending with ';'
2012-05-17 07:59:25 +00:00
0f43da2234
style cleanup: macro line breaks
2012-05-13 16:05:10 +00:00
c8ebfe1d12
code cleanup:
...
- use bmesh iterator macros in more places
- rename scanfill variables (were using same names as mesh faces/verts which was confusing)
2012-05-13 14:47:53 +00:00
305d341ec2
code cleanup: use vector math function minmax_v3v3_v3() and other minor vector function edits.
2012-05-13 11:05:52 +00:00
cffaa42d3a
style cleanup: blenkernel
2012-05-12 19:18:02 +00:00
4c5502bfd6
code cleanup: function naming for BLI functions.
2012-05-05 00:23:55 +00:00
a0ce240de9
Renamed "fake" OpenGL identifiers.
...
Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the glreport.py tool. Most of these were in comments so I just rephrased the comments. There were a couple of static functions/macros that were easy enough to rename. Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.
2012-05-04 11:50:11 +00:00
552a70f177
code cleanup:
...
- replace iterators with macros
- move vertexCos checks outside the for loops (use 2 for loops).
- style cleanup
2012-05-03 21:19:31 +00:00
fcb84663cd
Fix #31162 : Applying textures to rigged models causes crash and no textures in appear in edit mode
...
Issue was caused by doing stuff like binding textures from glBegin/glEnd block.
2012-05-01 15:59:28 +00:00
e701f9b670
style cleanup: whitespace / commas
2012-04-29 15:47:02 +00:00
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00