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-10-05rename overlap to holes for isect_point_poly_v2Campbell Barton
2013-10-04code cleanup: warnings and minor edits.Campbell Barton
2013-10-04fix for lasso failing/glitches on overlapping lines, replace scanfill with ↵Campbell Barton
2d pixel filling for drawing and selection.
2013-10-04fix for lasso selection (in non-zbuf mode) when the line intersected its self.Campbell Barton
isect_point_poly_v2() - add argument to check overlapping areas.
2013-09-25fix error where BKE_mesh_cd_validate layer renaming would use invalid index ↵Campbell Barton
values. from r60260 also correct some comments.
2013-09-14minor changes needed for building standalone mathutils.Campbell Barton
2013-09-07missing NULL check in recent commit, also skip some calculations in ↵Campbell Barton
mean_value_half_tan functions for degenerate cases.
2013-09-06fix for barycentric_weights_v2_quad() divide by zero when the location we're ↵Campbell Barton
checking the weight of touches one of the weighting coords exactly.
2013-08-31Simplify line/plane intersection, add line_plane_factor_v3().Campbell Barton
Remove no_flip option for isect_line_plane_v3(), its quite specific and only used for ED_view3d_win_to_3d().
2013-08-30Some knife fixes. Avoids duplicating verts; better handling of cut-through ↵Howard Trickey
ortho. Now cut lines detect vertices that they pass (almost) exactly over and snap to them, to avoid making verts vert close to other ones. Added radius arg to BKE_bmbvh_ray_cast so that can detect an obscuring face when the ray might otherwise go exactly between two triangles. Needed an isect_line_tri_epsilon function for similar reason. Fixes last part of bug #35002. Other knife bugs still present but getting this commit in now before continuing bug fixing.
2013-08-23simplify dist_to_plane_v3 and add dist_squared_to_plane_v3Campbell Barton
2013-08-23math api edits - replace point-normal form for a plane with dist_to_plane_v3()Campbell Barton
also correct python mathutils api, was missing vector checks.
2013-08-23modify closest_to_plane_v3 not to use point-normal form.Campbell Barton
2013-08-22add utility functions for dealing with planesCampbell Barton
- plane_point_side_v3(), a bit like line_point_side_v2() - isect_point_planes_v3(), moved from paint_hide.c functions to convert between point/normal pairs. - plane_from_point_normal_v3() - plane_to_point_normal_v3()
2013-08-22minor internal change: isect_point_poly_v2 was assigning a value past the ↵Campbell Barton
array bounds, not that bad since it wasn't read but this isnt good practice and its simple to avoid.
2013-08-01code cleanup: remove unused functionsCampbell Barton
- IsectLLPt2Df - isect_point_quad_uv_v2 - isect_point_face_uv_v2 These are obsoleted by resolve_tri_uv, resolve_quad_uv also add attributes for unused function results for some math functions.
2013-07-19code cleanup: avoid sqrt in isect_seg_seg_v2_pointCampbell Barton
2013-07-12optimize interp_weights_poly_v2(), well tested, was calculating the area ↵Campbell Barton
twice as much as was needed.
2013-07-11fix [#36105] Bevel UV FlickerCampbell Barton
interp_weights_poly_v2/3 functions used much too small an epsilon value, caused flickering.
2013-07-05fix [#35987] bevel gives nan verticesCampbell Barton
The line intersection function bevel uses could give nan intersections.
2013-06-26correct typos in comments.Campbell Barton
2013-06-21Code cleanup: fix some vs2012 compiler warningsBrecht Van Lommel
2013-06-10code cleanup: use boolean for intersection functions.Campbell Barton
2013-05-10Optimize BKE_mesh_calc_normals(), gives approx 25% speedup.Campbell Barton
- no need to allocate polygon normal array. - no need to use BLI_array_ functions (realloc's). - reduce some of the looping.
2013-05-03knife sort_by_frac_along was re-calculating the reference factor for every ↵Campbell Barton
test, change to only calculate once and use line_point_factor_v3(). also add zero division check for line_point_factor_v3() since the 2d version already checked for this.
2013-04-22add clip_segment_v3_plane_n() to clip a line segment to planes (as used for ↵Campbell Barton
view clipping). use in ED_view3d_win_to_segment_clip() and fix error, was clipping by only 4 planes rather then 6.
2013-04-22code cleanup: remove duplicate function _det_m3(), clip_line_plane was ↵Campbell Barton
copying a vector for no reason.
2013-04-21utility function volume_tetrahedron(), for mathutils and BLI math.Campbell Barton
2013-03-21code cleanup: use bool where values are true/false, for view3d and related ↵Campbell Barton
functions.
2013-03-15move polygon intersection out of BLI_lasso into BLI_math_geom since its a ↵Campbell Barton
generally useful function. adds: - isect_point_poly_v2() - isect_point_poly_v2_int()
2013-03-14tweaks to clang so blender can build with -WerrorCampbell Barton
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-03-07math: Use len_v3() instead of normalize_v3() for area calculationSergej Reich
We only need the length, avoids unnecessary calculations.
2013-03-03code cleanup: ~400 duplicate lines for AO form factor math.Campbell Barton
2013-02-19make asserts that check for unit length vectors into a macro.Campbell Barton
this was really not nice logic to try to fit into an assert.
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-14Divide by 3 instead of multiplying by variations of 0.333Sergej Reich
Fixes small precision problems.
2013-02-14modify own changes to is_quad_convex_v3() to allow quads with a co-linear ↵Campbell Barton
side to be considered convex (as it did in last release). this is needed so zero area faces be dealt with by beauty fill.
2013-02-13make is_quad_convex_v3() more strict, check if normal is OK before using as ↵Campbell Barton
a rotation axis. make is_quad_convex_v2,3() check for ISECT_LINE_LINE_CROSS intersection (that the lines actually cross each other).
2013-02-09fix for is_quad_convex_v3(), getting the dominant axis wasn't accurate ↵Campbell Barton
enough in some cases and would make beauty fill fail. now rotate the coords before calculation.
2013-02-03add dist_to_line_v3() for completeness, (had dist_to_line_v2 already)Campbell Barton
2013-02-02style cleanupCampbell Barton
2013-01-10bmesh todo: uv stretch area draw mode wasn't calculating ngon area - added ↵Campbell Barton
area_poly_v2().
2013-01-08style cleanupCampbell Barton
2013-01-08style cleanupCampbell Barton
2013-01-08comment fix.Antony Riakiotakis
Looks like no scaling is done elsewhere on blender for this code. I hope this bug is squashed for good.
2013-01-08* Fix for #31581. The issue was that we scaled the face prior toAntony Riakiotakis
projecting it. The original paper suggests to simply interpolate between the two points of an edge if the distance of the point to that edge is smaller than a threshold. * Fixed both 3D and 2D code to utilize this. Possibly other places in blender where this scaling is done will have to be adjusted. * Changed vertex interpolation to use 2D interpolation, since it already did projection on plane and 2d calculations are faster. * Also added notifier on hard recalc when uvcalc_transfor_correction is used. Results in instant feedback on UV editor when edge sliding.
2013-01-07add area_poly_v3_max() for use with area_poly_v3Campbell Barton
2013-01-07style cleanupCampbell Barton
2013-01-02style cleanupCampbell Barton