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
2015-09-03Small tri intersect fails when not normalizedCampbell Barton
Logic was ok, but would run into precision issues.
2015-08-31Revert fix for T45849 (part 2, tsk!)Campbell Barton
2015-08-31error in commentsCampbell Barton
2015-08-31Alternate fix for T45849: tri-tri intersect errorCampbell Barton
Project both triangles onto the same plane to simplify calculations.
2015-08-31Revert fix for T45849, alternate fix coming upCampbell Barton
epsilon check here didn't account for scale, causing T45919
2015-08-31Math Lib: Add closest_to_plane helper functionsCampbell Barton
- closest_to_plane3 (for float3 planes) - closest_to_plane*_normalized_v3 (for unit length planes) Use when the plane is known to be unit length
2015-08-25Fix T45853: Edge-slide UV-correct jitterCampbell Barton
2015-08-23Math Lib: Use same logic for 2d/3d functionsCampbell Barton
dist_squared_to_line_v2, dist_to_line_v2
2015-08-23Math Lib: minor optimization interp_weights_polyCampbell Barton
2015-08-22Cleanup: spellingCampbell Barton
2015-08-22Use epsilon for line-intersect collinear testCampbell Barton
Also remove 2x vector normalize since other parts of the code already check this. Fixes T45849
2015-08-21Math Lib: watertight intersection functionCampbell Barton
From Cycles with some very minor differences.
2015-08-20Cleanup: comment out isect_ray_tri_threshold_v3Campbell Barton
Also define epsilon var for ray-cast functions.
2015-08-19Fix T45706: Axis aligned tri-tri intersectionCampbell Barton
2015-07-29Math Lib: add isect_tri_tri_epsilon_v3 functionCampbell Barton
2015-07-21Math Lib: use vector funcs for isect_line_line_v2_pointCampbell Barton
2015-07-16Add tessellation data to DerivedMesh (LoopTri)Campbell Barton
This stores loop indices into the loop array giving easier acess to data such as vertex-colors and UV's, removing the need to store an MFace duplicate of custom-data. This doesn't yet move all internal code from MFace to LoopTri just yet. Only applies to: - opengl drawing - sculpting (pbvh) - vertex/weight paint Thanks to @psy-fi for review, fixes and improvements to drawing!
2015-07-14Match face tessellation order in edimodeCampbell Barton
add a negated version of axis_dominant_v3_to_m3
2015-06-24Correct recent errorCampbell Barton
2015-06-24Improve dist_***_to_corner_v3v3v3 precisionCampbell Barton
Remove offset before calculating distance. Define 'plane3' to BLI_math, since we often don't need the 4th component.
2015-06-23Fix T45123: 2D line intersection failsCampbell Barton
Co-linear lines could detect as intersecting even if they weren't overlapping.
2015-06-23Cleanup: use 2d math funcs for line intersectionCampbell Barton
2015-06-17Cleanup: styleCampbell Barton
2015-06-15Cleanup: quiet assert for zero-length axisCampbell Barton
2015-05-13Project Paint: resolve ugly bleed artifactsCampbell Barton
Use the bilinear reverse to find the pixel to bleed from. Was using pixel space which didn't work well.
2015-03-04Math Lib: redundant axis flip decomposing a planeCampbell Barton
Also add a faster, non-normalized version of the function. (Neither are used currently used).
2015-03-02Fix dist_signed_squared_to_corner_v3v3v3 with concave cornersCampbell Barton
2015-02-16Math Lib: add dist_signed_squared_to_corner_v3v3v3Campbell Barton
Can be used to check if a point is inside the 2-planes defined by a face-corner.
2015-01-13Math Lib: improve area calculationCampbell Barton
- area_quad_v3 now works correctly with concave quads. - add area_squared_*** functions, to use when comparing to avoid a sqrt().
2015-01-03Refactor 'fit in camera view' code, and expose it to RNA.Bastien Montagne
This changes BKE's fitting code to use `BKE_camera_params_compute_viewplane` instead of `BKE_camera_view_frame`. This allows that code to work with orthographic projection too. Also, two funcs were added to rna's Object, to resp. get the projection matrix of that object (mostly useful for cameras and lamps objects), and return position this object should be to see all (to fit) a given set of points. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D961
2014-12-27Fix T43034: beautify-fill leaves zero area tri'sCampbell Barton
2014-12-26optimize interp_weights_poly_v2, v3Campbell Barton
use line_point_factor instead of length between vertices.
2014-12-26optimize interp_weights_poly_v2, v3Campbell Barton
halve sqrtf calls per per polygon corner.
2014-12-26cleanup: use cross_tri_v2 when area isn't needed.Campbell Barton
2014-12-17Fix triangulating concave quadsCampbell Barton
Resulting triangles could be pointing in opposing directions.
2014-12-01Cleanup: hopefully last int->bool one in this area!Bastien Montagne
2014-11-21Cleanup: typoCampbell Barton
2014-10-23Checked each of my (jwilkins) XXX notes.Jason Wilkins
The ones in extern/glew-es have been changed to NOTE instead of XXX GHOST_ContextEGL.cpp: It really does seem that it is not possible to query the swap interval using EGL GHOST_WidnowCocoa.h: The comment referring to Carbon is clearly out of date, so I removed it. math_geom.c: The node about not using tmax again is correct, but the code is kept for a future maintainer who will need to know how to compute it if they modify that code. paint_image_proj.c (2698): The question about integer truncation does not appear to have been resolved. It still seems to be an incorrectly implementation of rounding (I'd suggest using the round function instead of this hack).
2014-10-10Cleanup: use bool and const argsCampbell Barton
2014-09-28Comments: clarify math libCampbell Barton
2014-09-24Cleanup: use float versions of functions when in/output are floatsCampbell Barton
2014-09-16Cleanup: sync map_to_sphere, UNLIKELY xy zero caseCampbell Barton
2014-08-17Math Lib: replace epsilon with check against zeroCampbell Barton
line-tri intersection depended on scale, The check made small triangles & lines fail. So just check for divide by zero as ray-cast currently does.
2014-08-16Math Lib: add isect_line_line_epsilon_v3Campbell Barton
2014-08-13Math Lib: rename barycentric_transform -> transform_point_by_tri_v3Campbell Barton
also add transform_point_by_seg_v3
2014-08-13Math Lib: name signed versions of dist_to_plane_v3 explicitlyCampbell Barton
also add unsigned versions
2014-07-30Cleanup: general cleanup in BLI_math code (mostly, use 'const' where ↵Bastien Montagne
possible, true/false for booleans, format for float litterals).
2014-07-21Math Lib: Add isect_point_tri_v3Campbell Barton
Add to Python via mathutils.geometry
2014-07-11Fix T41019: Calculate Mass does not calculate actual volume.Lukas Tönne
This was a ToDo item, for mesh-based rigid body shapes (trimesh, convex) the operator was simply using the bounding box volume, which can grossly overestimate the volume and mass. Calculating the actual volume of a mesh is not so difficult after all, see e.g. http://research.microsoft.com/en-us/um/people/chazhang/publications/icip01_ChaZhang.pdf This patch also allows calculating the center-of-mass in the same way. This is currently unused, because the rigid body system assumes the CoM to be the same as the geometric object center. This is fine most of the time, adding such user settings for "center-of-mass offset" would also add quite a bit of complexity in user space, but it could be necessary at some point. A number of other physical properties could be calculated using the same principle, e.g. the moment of inertia.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).