|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | __MATH_GEOM_INLINE_C__ |
| #define | SMALL_NUMBER 1.e-8f |
| #define __MATH_GEOM_INLINE_C__ |
Definition at line 27 of file math_geom_inline.c.
| #define SMALL_NUMBER 1.e-8f |
Definition at line 35 of file math_geom_inline.c.
Definition at line 81 of file math_geom_inline.c.
References Freestyle::a, and r.
Referenced by madd_sh_shfl().
Definition at line 54 of file math_geom_inline.c.
References blender::compositor::area(), area_tri_signed_v2(), v1, and v2.
Definition at line 44 of file math_geom_inline.c.
Referenced by area_squared_tri_v2(), and area_tri_v2().
Definition at line 49 of file math_geom_inline.c.
References area_tri_signed_v2(), fabsf, v1, and v2.
Referenced by BKE_mesh_remap_calc_polys_from_mesh(), computeBindWeights(), IsectPT2Df_limit(), M_Geometry_area_tri(), project_paint_bleed_add_face_user(), test_polyfill_area(), and transform_point_by_tri_v3().
Definition at line 168 of file math_geom_inline.c.
References fabsf.
Referenced by barycentric_differentials_from_position(), barycentric_weights(), and uvedit_unwrap_cube_project().
Definition at line 189 of file math_geom_inline.c.
References fabsf.
Definition at line 222 of file math_geom_inline.c.
References fabsf, x, y, and z.
Referenced by ED_view3d_cursor3d_position_rotation().
Definition at line 213 of file math_geom_inline.c.
References fabsf, x, y, and z.
Referenced by calc_initial_placement_point_from_view(), distribute_grid(), isect_ray_tri_watertight_v3_precalc(), ortho_v3_v3(), OVERLAY_volume_extra(), workbench_volume_modifier_cache_populate(), and workbench_volume_object_cache_populate().
Definition at line 67 of file math_geom_inline.c.
References Freestyle::a, and r.
Referenced by madd_sh_shfl(), and vec_fac_to_sh().
Definition at line 39 of file math_geom_inline.c.
Referenced by barycentric_weights_v2(), barycentric_weights_v2_clamped(), barycentric_weights_v2_persp(), BLI_polyfill_beautify_quad_rotate_calc_ex(), bm_edge_calc_rotate_beauty__area(), bm_loop_collapse_is_degenerate(), color_sample_remove_cost(), gpencil_add_guide_points(), project_face_winding_init(), and test_polyfill_winding().
Definition at line 90 of file math_geom_inline.c.
References Freestyle::a, and r.
Referenced by eval_shv3().
Definition at line 150 of file math_geom_inline.c.
References dot_shsh(), v, and vec_fac_to_sh().
Definition at line 158 of file math_geom_inline.c.
References add_sh_shsh(), copy_sh_sh(), mul_sh_fl(), and r.
Definition at line 230 of file math_geom_inline.c.
Referenced by blender::compositor::KeyingDespillOperation::executePixelSampled(), and blender::compositor::KeyingOperation::executePixelSampled().
Definition at line 238 of file math_geom_inline.c.
Referenced by view3d_ruler_pick().
Definition at line 72 of file math_geom_inline.c.
References r.
Referenced by madd_sh_shfl(), and vec_fac_to_sh().
Definition at line 258 of file math_geom_inline.c.
References dot_v3v3().
Referenced by BKE_mesh_mirror_bisect_on_mirror_plane_for_modifier(), bmo_bisect_plane_exec(), clip_segment_v3_plane(), clip_segment_v3_plane_n(), closest_to_plane_normalized_v3(), closest_to_plane_v3(), dist_signed_squared_to_plane_v3(), dist_signed_to_plane_v3(), dist_squared_to_plane_v3(), draw_culling_box_test(), draw_culling_plane_test(), draw_culling_sphere_test(), DRW_culling_min_max_test(), isect_aabb_planes_v3(), isect_point_planes_v3(), isect_point_planes_v3_negated(), plane_point_side_flip(), plane_point_test_v3(), sculpt_gesture_is_vertex_effected(), SCULPT_plane_point_side(), tree_intersect_plane_test(), and view3d_clipping_test().
| MINLINE int poly_to_tri_count | ( | const int | poly_count, |
| const int | corner_count | ||
| ) |
Simple method to find how many tri's we need when we already know the corner+poly count.
| poly_count | The number of ngon's/tris (1-2 sided faces will give incorrect results) |
| corner_count | also known as loops in BMesh/DNA |
Definition at line 252 of file math_geom_inline.c.
References BLI_assert.
Referenced by bake_targets_populate_pixels_vertex_colors(), BKE_mesh_recalc_looptri(), BKE_mesh_runtime_looptri_len(), BKE_mesh_tessface_calc_ex(), BM_mesh_calc_tessellation(), BM_mesh_calc_tessellation_beauty(), BMD_mesh_intersection(), bpy_bmesh_calc_loop_triangles(), build_pbvh_from_regular_mesh(), C_BVHTree_FromBMesh(), ccgDM_recalcLoopTri(), DM_ensure_looptri_data(), dm_getNumLoopTri(), ED_draw_object_facemap(), editmesh_tessface_calc_intern(), heat_bone_weighting(), Freestyle::BlenderFileLoader::insertShapeNode(), mesh_calc_tri_tessface(), mesh_ensure_looptri_data(), mesh_faces_to_scratch(), mesh_render_data_create(), raycastEditMesh(), RE_bake_pixels_populate(), sculpt_gesture_apply_trim(), and stats_mesheval().
Definition at line 267 of file math_geom_inline.c.
References angle(), cosf, fabsf, SMALL_NUMBER, and UNLIKELY.
Referenced by Bend(), and BM_mesh_wireframe().
equivalent to shell_angle_to_dist(angle_normalized_v2v2(a, b) / 2)
Definition at line 309 of file math_geom_inline.c.
References Freestyle::a, add_v2_v2v2(), BLI_ASSERT_UNIT_V2, dot_v2v2(), fabsf, normalize_v2(), SMALL_NUMBER, and UNLIKELY.
equivalent to shell_angle_to_dist(angle_normalized_v2v2(a, b))
Definition at line 284 of file math_geom_inline.c.
References Freestyle::a, BLI_ASSERT_UNIT_V2, dot_v2v2(), fabsf, SMALL_NUMBER, and UNLIKELY.
equivalent to shell_angle_to_dist(angle_normalized_v3v3(a, b) / 2)
Definition at line 295 of file math_geom_inline.c.
References Freestyle::a, add_v3_v3v3(), BLI_ASSERT_UNIT_V3, dot_v3v3(), fabsf, normalize_v3(), SMALL_NUMBER, and UNLIKELY.
Referenced by alter_co(), bmo_face_inset_individual(), and bmo_inset_region_exec().
equivalent to shell_angle_to_dist(angle_normalized_v3v3(a, b))
Definition at line 274 of file math_geom_inline.c.
References Freestyle::a, BLI_ASSERT_UNIT_V3, dot_v3v3(), fabsf, SMALL_NUMBER, and UNLIKELY.
Referenced by BM_vert_calc_shell_factor(), BM_vert_calc_shell_factor_ex(), bmo_inset_region_exec(), MOD_solidify_extrude_modifyMesh(), and solidify_add_thickness().
Definition at line 124 of file math_geom_inline.c.
References copy_sh_sh(), mul_sh_fl(), r, v, x, y, and z.
Referenced by eval_shv3().
Definition at line 62 of file math_geom_inline.c.
References r.