Blender V4.3
add_curves_on_mesh.cc File Reference

Go to the source code of this file.

Classes

struct  blender::geometry::NeighborCurve
 

Namespaces

namespace  blender
 
namespace  blender::geometry
 

Typedefs

using blender::geometry::NeighborCurves = Vector<NeighborCurve, max_neighbors>
 

Functions

float3 blender::geometry::compute_surface_point_normal (const int3 &tri, const float3 &bary_coord, Span< float3 > corner_normals)
 
static void blender::geometry::calc_straight_curve_positions (const float3 &a, const float3 &b, MutableSpan< float3 > dst)
 
static Array< NeighborCurvesblender::geometry::find_curve_neighbors (const Span< float3 > root_positions, const KDTree_3d &old_roots_kdtree)
 
template<typename T , typename GetValueF >
void blender::geometry::interpolate_from_neighbor_curves (const Span< NeighborCurves > neighbors_per_curve, const T &fallback, const GetValueF &get_value_from_neighbor, MutableSpan< T > r_interpolated_values)
 
static void blender::geometry::calc_position_without_interpolation (CurvesGeometry &curves, const int old_curves_num, const Span< float3 > root_positions_cu, const Span< float > new_lengths_cu, const Span< float3 > new_normals_su, const float4x4 &surface_to_curves_normal_mat)
 
static void blender::geometry::calc_position_with_interpolation (CurvesGeometry &curves, const Span< float3 > root_positions_cu, const Span< NeighborCurves > neighbors_per_curve, const int old_curves_num, const Span< float > new_lengths_cu, const Span< float3 > new_normals_su, const bke::CurvesSurfaceTransforms &transforms, const Span< int3 > corner_tris, const ReverseUVSampler &reverse_uv_sampler, const Span< float3 > corner_normals_su)
 
static void blender::geometry::calc_radius_without_interpolation (CurvesGeometry &curves, const IndexRange new_points_range, const float radius)
 
static void blender::geometry::calc_radius_with_interpolation (CurvesGeometry &curves, const int old_curves_num, const float radius, const Span< float > new_lengths_cu, const Span< NeighborCurves > neighbors_per_curve)
 
AddCurvesOnMeshOutputs blender::geometry::add_curves_on_mesh (bke::CurvesGeometry &curves, const AddCurvesOnMeshInputs &inputs)
 

Variables

static constexpr int blender::geometry::max_neighbors = 5