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
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2020-07-21Bevel: Refactor "Vertex Only" to an enumHans Goudey
This matches the change that was done to the bevel modifier so that the interface for the modifier, the active tool, and the operator are consistent. This commit extends the refactor to the bmesh implementation too, so that the parameters in the implementation don't stray too far from what is exposed. Tests are adjusted and still pass.
2020-06-23Bevel: Refactor profile type input to use an enumHans Goudey
This will allow the easier addition of a constant radius mode in the future and some changes in the UI to mirror the recent similar change from "Only Vertices" to the "Affect" enum.
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2019-11-21Bevel: Custom Profile and CurveProfile WidgetHans Goudey
Custom profiles in bevel allows the profile curve to be controlled by manually placed control points. Orientation is regularized along groups of edges, and the 'pipe case' is updated. This commit includes many updates to comments and changed variable names as well. A 'cutoff' vertex mesh method is added to bevel in addition to the existing grid fill option for replacing vertices. The UI of the bevel modifier and tool are updated and unified. Also, a 'CurveProfile' widget is added to BKE for defining the profile in the interface, which may be useful in other situations. Many thanks to Howard, my mentor for this GSoC project. Reviewers: howardt, campbellbarton Differential Revision: https://developer.blender.org/D5516
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-21Cleanup: shadow warning, styleCampbell Barton
2019-01-18Add miter pattern options.Howard Trickey
Will document the new options in release notes, then in manual. Still a bit of work to do on the bulging shape that appears on cube corners if using arc inner miters, but will do that later. Also need to do something smarter in clamp overlap.
2019-01-07Better bevel normal hardening when some faces were smooth.Howard Trickey
Harden normals causes normal splitting, which will not give the appearance expected due to autosmooth unless some edges are sharpened, so this change fixes that. Also bevel tool will turn on autosmooth if not already on if hardening normals.
2019-01-03Fix T58113 Multiple problems with bevel harden normals.Howard Trickey
Move the bevel hardening code all into bmesh_bevel.c. Based on user feedback, rewrote the bevel hardening algorithm to be more what users want. Based on user feedback, changed the UI, removing some not-useful options. Now hardening normals while beveling is enabled by a simple checkbox. Now setting face strength gives options for which faces get their face strength set.
2018-11-27Partial fix for T57868, crash when using bevel from Python.Howard Trickey
These changes are necessary. Need to mark vertices of edges passed in geom; also the normals.out slot has a custom element type, not ELEM, so need to prevent attempt by python code to convert it to an elem. But this leaves a memory leak. I will rework code to not use normals.out slot at all, but that's a bigger fix. Now there is a crash in a different place (GPU code). Think that if using Op on its own (instead of from edbm_bevel_calc, there needs to be a dependency graph update and maybe more?
2018-08-10Cleanup: styleCampbell Barton
2018-08-05Fix indentation, spacing and added commentsRohan Rathi
2018-08-04Fixed hnmode not being passed with bevel toolRohan Rathi
2018-06-11Added ability to harden normals.Rohan Rathi
Uses 2 different params: mode and strength. There are still some hiccups with how 2.8 interacts with normals. Will resolve as support gets better
2018-06-04Added UI support for seams and sharp edges and cleanupRohan Rathi
2017-06-07Bevel Op (internal and API) now returns new edges and verts as well asHoward Trickey
faces. This was requested by script writers. Especially needed if beveling wire edges with vertex_only. Should be backward compatible as just adds two new keys to returned dict in python ('edges' and 'verts').
2015-07-05Add 'loop slide' option to bevel. See T45260Howard Trickey
Current behavior of bevel is to 'loop slide' along unbeveled edges when possible, but this produces uneven bevel widths sometimes, so this option lets user choose between having the loop slide effect or having more even bevel widths. Trying it out with default being 'no loop slide', so different from current behavior. May reverse this choice later, depending on user reactions.
2014-10-08Fix T42145: EditMesh Bevel tools had no clamping option.Bastien Montagne
Missing feature already present in Bevel modifier, useful and rather simple to add.
2014-07-17Fix T34664: bevel face material can be set in tool and modifier.Howard Trickey
Now the bevel tool, modifier, and internal operator have a material slot # parameter that the user can set. If left at default of -1, behavior is as current -- bevel face material is taken from the closest original face (this may be ambiguous). If material slot is >= 0, it gives the material slot index number for the material to use.
2014-01-08Add profile control parameter to Bevel.Howard Trickey
Parameter controls concavity / convexity. <.25 means: concave inward .25 means: straight slanted >.25 means: concave outward .5 means: circular (the default) 1 means: straight along original sides For now, there is a hard lower limit of .15 because more work is needed to get decent results in the range below that. The profile is actually a superellipse, and the parameter is 1/4 of the exponent in the implicit equation for a superellipse, except at the extreme values of 0 and 1.
2013-11-10Added options for how bevel amount is measured.Howard Trickey
Now there is an 'Offset Type' dropdown on tool shelf with types: Offset - current method, offset of new edge from old along sliding face Width - width of new bevel face (if segments=1) Depth - amount a chamfering plane moves down from original edge Percent - percent of way sliding edges move along their adjacent edges The different options mainly are useful when beveling more than one edge at once. Leaving as a TODO to put these in the modifier, as doing that has more permanent effects so want to let users shake out problems with this first.
2013-08-23move bmesh tools into their own include,Campbell Barton
changes to tool args would rebuild far too many files and these are mainly by modifiers outside of bmesh.
2013-03-30code comments: bmesh operator doxy header descriptions.Campbell Barton
2013-03-13Fix bevel modifier bug #34611, limit bevel amount needed.Howard Trickey
This is a quick fix that perhaps overestimates the point of first geometry collision, but at least for now it should allow models that used the old modifier and a too-big bevel amount to not look awful. The correct solution to this problem is much more involved and I'll get to it later.
2013-02-21Enable new bevel tool code in bevel modifier.Howard Trickey
Now modifier takes a segments parameter. Bevel edge weights will multiply the overall amount. For vertex-only, you can give a vertex group name, and the weights in that will multiply the overall amount.
2013-01-14use booleans for bmesh api.Campbell Barton
2012-12-28Add 'vertex_only' option to bevel tool.Howard Trickey
Right now, changing segments to > 1 doesn't do anything, but intend to work on making that cause rounded corners.
2012-11-20code cleanup: make bmesh operator names more consistant since python has ↵Campbell Barton
access to these as input arguments and return values. all output values currently have ".out" suffix, this may go in the future, but for now it makes it clear in C code what are inputs and outputs.
2012-11-19use input and output slots for bmesh operators, needed for the python api to ↵Campbell Barton
get return values.
2012-11-19improvements to bevelCampbell Barton
- the resulting selection is now correct internal details - bev_rebuild_polygon() now only rebuilds polygons that are attached to a bevel vertex (was rebuilding ALL). ... need to take care we don't leave faces pointing to removed geometry, so far this works fine. - bev_rebuild_polygon() uses stack memory for <32 size ngons to reduce allocs. - skip hash lookup when removing bevel verts (use tag instead).
2012-11-19bmesh: BM_verts_in_face was using bmesh operator flag which is no longer ↵Campbell Barton
ensured to be available, use internal apiflag instead, Thanks to Nicholas Bishop for spotting. also quiet some warnings.
2012-11-18bevel now only takes manifold edges (so it doesnt need to check for them)Campbell Barton
2012-11-18finish moving bevel code out of the operator dir (it works again)Campbell Barton
2012-11-18moving bevel to tools dir as-is to keep svn history (breaks build, will fix ↵Campbell Barton
next).
2012-11-17use quad-strip for filling even when no segments are being added, this gives ↵Campbell Barton
quad-loops along the bevel whereas before it made ngons.
2012-11-17more straightforward way to implement quad-strip face filling suggested by ↵Campbell Barton
Howard Trickey, also some other changes - no need to check the new loops face is larger and no longer split up the ngon more times then there are subdivisions in the face strip (now ngons will remain on both sides).
2012-11-16rework the bevel quad strip logic to work with ngons correctly, previously ↵Campbell Barton
it only worked properly with triangles.
2012-11-16fix for own bug in quad-stip fill method, quad strips were skewed.Campbell Barton
2012-11-16more minor improvements to bevel use of math functionsCampbell Barton
2012-11-16code cleanup: remove unneeded normalize (face normal), and unneeded call to ↵Campbell Barton
len_v3v3
2012-11-16bevel: save some memory by aligning struct members.Campbell Barton
2012-11-16wip - alternate bevel curve calculation (still disabled)Campbell Barton
now USE_ALTERNATE_ADJ works, giving more stable corners that don't flicker and glitch out as the offset changes. The shape is not a circle though and doesnt look quite as nice as the existing method.
2012-11-16bevel: wip ifdef'd code to test an alternative method of placing corner ↵Campbell Barton
vertices.
2012-11-16code cleanup: some renaming to avoid confusion.Campbell Barton
2012-11-15code cleanup: move local math functions into math_geom.c, math_vector.c, no ↵Campbell Barton
functional changes.
2012-11-15fix for deleting lines hanging the text editor when no markers are used, ↵Campbell Barton
presence of markers still hangs. also compiler warnings and some style edits.