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
2016-04-14Math Lib: ray_point_factor_v3 functionsCampbell Barton
Gives a bit better precision than creating a line in some cases, use for ED_view3d_win_to_3d.
2016-02-11Cleanup: naming for NearestRayToAABB_PrecalcGermano Cavalcante
2016-01-25Math Lib: Add dist_squared_ray_to_aabb_v3 utilityGermano Cavalcante
2016-01-23Math Lib: optimize segment-plane clippingCampbell Barton
Calculate the clipped min/max factor along the segment, only applying to the coordinates at the end (will give better precision too). Also make split input/output args.
2016-01-20Cleanup: naming conventionCampbell Barton
Follow isect_ray_tri_watertight_v3 naming.
2016-01-08Math Lib: use x-span for fill_poly_v2i_n callbackCampbell Barton
Instead of running the callback per-pixel, pass the x-span to the callback.
2015-12-15Cleanup: math lib namingCampbell Barton
Distinguish between line / line_segment
2015-12-15Cleanup: math lib namingCampbell Barton
Rename not-very-descriptive (p1, d) -> (ray_origin, ray_direction)
2015-12-15Cleanup: consistent naming for closest_to_line apiCampbell Barton
2015-12-11Math Lib: 2d ray-segment intersection functionCampbell Barton
2015-12-09Math Lib: add axis_dominant_v3_ortho_singleCampbell Barton
2015-11-12Cleanup: rename line to segments, avoids confusionCampbell Barton
Differentiate between lines and segments.
2015-10-15BLI_math: isect_ray_plane_v3 now takes 4d planeCampbell Barton
Was taking a triangle and doing ray-tri intersect.
2015-09-04Math Lib: Use plane intersect from graphics-gemsCampbell Barton
2015-08-31Alternate fix for T45849: tri-tri intersect errorCampbell Barton
Project both triangles onto the same plane to simplify calculations.
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-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-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-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-23Cleanup: use 2d math funcs for line intersectionCampbell 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-17Fix triangulating concave quadsCampbell Barton
Resulting triangles could be pointing in opposing directions.
2014-10-10Cleanup: use bool and const argsCampbell Barton
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-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-22Fix T39429: Project paint error with UV bleedCampbell Barton
2014-04-22Math Lib: move barycentric_weights_v2_persp to into math_geomCampbell Barton
2014-04-19Math Lib: add shell_v3v3_normalized_to_dist and v2 versionCampbell Barton
bypass angle calculation to avoids (asin, sqrt, cos).
2014-04-16Math Lib: optimize axis_dominant_v3_to_m3, approx 6x speedupCampbell Barton
build the matrix directly rather then calculating with axis/angle also remove unused function calc_poly_plane
2014-04-15Math Lib: avoid having to pass a pre-calculated normal tot area_poly_v3Campbell Barton
add normal_poly_v3
2014-03-30Code cleanup: de-duplicate cotangent weight function & add arg sizesCampbell Barton
2014-03-29Code cleanup: replace dot with len_squared and is_zero checksCampbell Barton
2014-03-27BMesh: optimize BM_face_legal_splits for concave facesCampbell Barton
2014-03-27Code cleanup: use consistent arg order for math api poly funcsCampbell Barton
2014-03-26New resolve_tri_uv_v3 util functionDalai Felinto
Compute barycentric coordinates (u, v) for a point with respect to a triangle. This is needed for Cycles baking but we decided to push this independently of the upcoming main baking changes. Code adapted from Christer Ericson's Real-Time Collision Detection. Cleanup, refactoring and review from Campbell Barton.
2014-03-26Code cleanup: add _v2 suffix to resolve_tri/quad functionsCampbell Barton
2014-03-20Fix for clang build warnings: ATTR_WARN_UNUSED_RESULT is used afterLukas Tönne
the inline definitions are included, which gives lots of warnings "attribute declaration must precede definition". See also rB83617429cf28f2a19e991a0f71d892fc159a4419