Revision 0dccffb by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:37 (GMT) |
Fix for CustomDataType syntax error from merging. |
Revision 3a3327d by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:25 (GMT) |
Cleanup: rename function argument for consistency. |
Revision 7719a63 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:25 (GMT) |
Use the X mirror option in new strand edit stroke brush tools. Note that currently this has virtually no effect, because the mirror option relies on exact positions of vertices, which does not happen with random hair placement (the add brush has no mirror option yet). Eventually topological mirroring should help with this case, but is not implemented for either old or new strand edit yet. |
Revision 8ffcd1f by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:25 (GMT) |
Utility methods for mirrored strand editing. These are a modified version of their BMEditMesh counterparts. use_topology is not yet implemented for strands. Native strand topology is not very useful for this. Instead, the topology of the scalp mesh should be used for finding mirrored strand roots, then the arc- or parametric length of a vertex from the root to find mirrored verts. Conflicts: source/blender/blenkernel/BKE_editstrands.h |
Revision 5b9b779 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Minor code reshuffling. |
Revision ed1dc43 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Fix for strands undo creating an invalid BMesh. When copying mesh data to bmesh the MVERT and similar customdata types have to be omitted. Otherwise the bmesh instance ends up with NULL pointers in customdata layers, but entries in the typemap != -1. The effect was that when storing new steps after one or more undo, the resulting original data would be copied, and subsequent undo steps are ignored. |
Revision 299859e by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Sanity check: if there is no edited/active object for an undo step, consider it invalid and clean up. |
Revision 3f539c9 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Removed deprecated UI button for the hair debug flag. |
Revision 4798464 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Extended Mesh <-> BMesh copy function versions for specifying custom data masks explicitly. A dummy mesh is used for strand edit undo storage like in mesh edit to prevent unnecessary code duplication. However, when copying from/to BMesh only the mesh data layers are copied by default, omitting the new data layers for strands (currently only MSurfaceSample hair root data). |
Revision 5e42aff by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Basic undo support in the new strand edit mode. This uses the generalized undo stack system which is also used for object data edit. An extension is necessary to tell the undo functions which object is specifically used for generating undo data and identifying the stack, since strand editing does not edit the obdata itself. |
Revision 2cddc3c by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Disabled the partial IK strand relaxation for the time being. First goal is to reproduce current particle edit tools in the strand edit mode, then make improvements. |
Revision 410998c by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Border Select operator for hair edit mode. |
Revision 6146b90 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Select Linked operator for hair edit mode (select all vertices of a strand). |
Revision 62fa5c4 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Select/Deselect All operator for hair edit mode. |
Revision 8b2ec99 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Lasso Select operator for hair edit mode. |
Revision b6f4e09 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Mouse Select operator for hair edit mode. |
Revision 9120df6 by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
Missing bmesh include path in scons files. |
Revision 48a86af by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:24 (GMT) |
IK solver for hair strands that provides a better solution for keeping consistent segment lengths when transforming vertices. Warning: The implementation is not correct yet, but all the steps should be there. The main idea is to treat strands as a sequence of joints that are displaced out of their original locations by a transform or other tool. The solver then tries to find a global per-strand solution that keeps the segment lengths unmodified, with a minimum change in angles from the original starting shape. Such a solution is much more usable and efficient than the current O(n^2) attempt of "spreading the error" across the strand. The inverse kinematics method is very flexible. It can also include stretching, which would be very welcome for features like the length tool. Different parts of the strand could be weighted separately using scaling factors for the angle/stretch parameters. Conflicts: source/blender/physics/intern/implicit.h |
Revision ac54ded by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:23 (GMT) |
Primitive transform operator support for strand vertices. This does not yet prevent root transforms and/or length changes. |
Revision eacc24c by Lukas Toenne (alembic, gooseberry, gooseberry_farm, hair_guides, hair_guides_grooming, hair_object, strand_editmode, strand_gpu, strand_nodes, temp_motionpaths, tmp_hair_curves) April 20, 2015, 10:23 (GMT) |
Ported over the relaxation method for hair vertices from particle edit mode. This method is simple, but not really very usable. It works by successively relaxing segments that are too long or too short, moving both vertices along the edge between them. This is repeated N^2 times (N: number of vertices on the strand). A true IK solver could give a lot better results, as well as providing many opportunities to apply weighting for targets (e.g. preferring to move non-selected over selected vertices). Many different methods for simple IK solvers exist, so there should be one that works well for large number of simple strands. See e.g. http://www.math.ucsd.edu/~sbuss/ResearchWeb/ikmethods/iksurvey.pdf |
|