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
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-08surpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c ↵Campbell Barton
convert.
2013-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-17code cleanup: name mesh functions more consistently, also use bools for mesh ↵Campbell Barton
args.
2013-03-16code cleanup: shadowingCampbell Barton
2013-03-16object converting curve/mball to a mesh would give invalid selection state ↵Campbell Barton
(edges selected but nothing else). add arg to BKE_mesh_calc_edges() so selecting newly created edges is optional.
2013-03-15code cleanup: rename BKE_mesh_to_curve_ex --> BKE_mesh_to_curve_nurblist,Campbell Barton
also correct odd indentation.
2013-03-14split up BKE_mesh_to_curve() into 2 functions, adding BKE_mesh_to_curve_ex() ↵Campbell Barton
which doesn't do object type conversion.
2013-03-14converting a mesh to a curve was unnecessarily using tessface's.Campbell Barton
use mpolys instead and simplify checks for wire edges. Also rename BKE_mesh_from_curve() --> BKE_mesh_to_curve() since this function converts a mesh into a curve.
2013-02-28fix for bmesh regression similar to last revision r54920. only effected ↵Campbell Barton
loading old blend files without edge data.
2013-02-14Fix "Origin to Center of Mass" not working well with ngonsSergej Reich
Now we do simple triangulation and calculate signed area of triangles to account for concave polygons. This only works correct for planar polygons but gives better results overall.
2013-02-06style cleanup: some warnigs & spelling.Campbell Barton
2013-02-05Fix #34040: Moving Normal Node with enabled Cycles Material Preview crashesSergey Sharybin
Issue was caused by couple of circumstances: - Normal Map node requires tesselated faces to compute tangent space - All temporary meshes needed for Cycles export were adding to G.main - Undo pushes would temporary set meshes tessfaces to NULL - Moving node will cause undo push and tree re-evaluate fr preview All this leads to threading conflict between preview render and undo system. Solved it in way that all temporary meshes are adding to that exact Main which was passed to Cycles via BlendData. This required couple of mechanic changes like adding extra parameter to *_add() functions and adding some *_ex() functions to make it possible RNA adds objects to Main passed to new() RNA function. This was tricky to pass Main to RNA function and IMO that's not so nice to pass main to function, so ended up with such decision: - Object.to_mesh() will add temp mesh to G.main - Added Main.meshes.new_from_object() which does the same as to_mesh, but adds temporary mesh to specified Main. So now all temporary meshes needed for preview render would be added to preview_main which does not conflict with undo pushes. Viewport render shall not be an issue because object sync happens from main thread in this case. It could be some issues with final render, but that's not so much likely to happen, so shall be fine. Thanks to Brecht for review!
2013-02-02style cleanupCampbell Barton
2013-01-24add 'deform - integrate' option to mesh-cache,Campbell Barton
This means the deformation on the input to the modifier can be re-applied ontop of the mesh cache. In practice this is most useful for using corrective shape-keys with mesh-cache.
2013-01-14use booleans for bmesh api.Campbell Barton
2013-01-12code cleanup: style and replace (float)sin, (float)cos with sinf, cosfCampbell Barton
2013-01-10Fix #33752: UV Orco coordinates were wrong for Cycles (and other externalBrecht Van Lommel
render engines). Replaced generating orco_index by filling the UV loop data directly which is easier and all that needed to be done anyway.
2013-01-10don't store bevel weights or edge crease customdata layers in editmode ↵Campbell Barton
unless they are needed. configurable in 'Geometry Data' panel, will be added when running crease edges transform for example.
2012-12-28code cleanup:Campbell Barton
- free_dverts -> BKE_defvert_array_free - copy_dverts -> BKE_defvert_array_copy also move the functions from BKE_mesh into BKE_deform
2012-12-27add option to BLI_scanfill_calc() - BLI_SCANFILL_CALC_HOLES, gives some ↵Campbell Barton
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-22flush selection from vertex paint and weight paint modes when exiting, this ↵Campbell Barton
isnt fool-proof, will need more work.
2012-12-22flush selection when switching weight paint vertex/face selection modes.Campbell Barton
2012-12-22function for flushing polygon -> vert,edge selection (in object mode), ↵Campbell Barton
currently unused.
2012-12-22code cleanup and minor changesCampbell Barton
- use DummyRNA_NULL_items to replace empty enums. - replace calloc with malloc in copy_dverts since its copied over after. - add wmGesture->userdata, so operators that use gestures have somewhere to store their own data (not used yet).
2012-12-21minor bmesh improvementsCampbell Barton
- use 2 omp sections for vert -> (edge, face) selection flushing. - dont use face-loop iterator for cddm_from_bmesh_ex conversion to give some speedup (some modifiers use this). - use float(*)[3] for functions that return coords.
2012-12-15move pbvh into BKE, it used many BKE bad level includes.Campbell Barton
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-15move bpath module from BLI to BKE, it was making many bad level calls into BKE.Campbell Barton
2012-12-11replace BLI_array_fixedstack_declare with() new macro BLI_array_alloca() ↵Campbell Barton
which uses stack memory always and doesn't need to be freed explicitly.
2012-11-27fix/workaround [#33281] script goes into not responding Campbell Barton
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-12BM_iter_as_arrayN() can now take an optional existing array argument, useful ↵Campbell Barton
to avoid many small malloc's by passing a fixes size stack variable instead. Will give some speedup to edge-split modifier and bevel.
2012-11-09style cleanup: indentationCampbell Barton
2012-10-31fix for assert when rendering with cycles, caused by my recent commits.Campbell Barton
2012-10-31make use customdata typeoffset more, add an assert to ensure its to date.Campbell Barton
2012-10-30remove CD_POLYINDEX customdata layer:Campbell Barton
reported as [#29376] BMESH_TODO: remove tessface CD_ORIGINDEX layer for a single mesh there could be 3 origindex mappings stored, one on the polygons and 2 on the tessfaces. (CD_POLYINDEX and CD_ORIGINDEX). as Andrew suggests, now tessfaces (which are really a cache of polygons), using origindex to point to polygons on the same derived mesh, and polygons only store the original index values.
2012-10-23rename api functions...Campbell Barton
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-20Add option to set object origin to the center of massSergej Reich
This uses the weighted average of polygon centroids based on area It work well in most cases but will be slightly wrong when polygons have many vertices.
2012-10-12quiet some -Wshadow warningsCampbell Barton
2012-10-11fix [#32829] Crash when making linked Mesh with UV Map localCampbell Barton
2012-10-02fix for crash loading durian file '08.5e_comp.blend' - external data pointer ↵Campbell Barton
for face data was NULL.
2012-09-27incorrect spelling in commentsCampbell Barton
2012-09-25small improvement to previous commit, use pre-calculated ngon normal to ↵Campbell Barton
avoid calculating twice when dupli-scale is enabled.
2012-09-25fix [#32646] Duplifaces can have wrong orientation with ngonsCampbell Barton
concave ngons could flip the dupliface, now use the faces normal when calculating the dupli-face.
2012-09-21remove sticky coordinates from blender, this was missing from the UI since 2.49.Campbell Barton
TODO - drop support from the renderer still.
2012-09-18code cleanup: typos and set exceptional cases of zero length normals as ↵Campbell Barton
UNLIKELY().
2012-08-25fix for type mismatch with SWAP() macro.Campbell Barton
2012-08-18Fix for some typos/spelling mistakesJoshua Leung
2012-08-17fix own error in recent smoothview cleanup, also correct some cross ↵Campbell Barton
references in bmesh docs.
2012-07-31support for curve orco uv's as UV's in cycles.Campbell Barton
ideally these would be used as generated coordinates, but this is tricly because cycles calculates its own orco's and doesnt know about curve settings.