Blender  V3.3
Classes | Namespaces | Typedefs | Functions | Variables
add_curves_on_mesh.cc File Reference
#include "BLI_length_parameterize.hh"
#include "BKE_attribute_math.hh"
#include "BKE_mesh_sample.hh"
#include "GEO_add_curves_on_mesh.hh"
#include "GEO_reverse_uv_sampler.hh"

Go to the source code of this file.

Classes

struct  blender::geometry::NeighborCurve
 

Namespaces

 blender
 
 blender::geometry
 

Typedefs

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

Functions

float3 blender::geometry::compute_surface_point_normal (const MLoopTri &looptri, const float3 &bary_coord, const Span< float3 > corner_normals)
 
static void blender::geometry::initialize_straight_curve_positions (const float3 &p1, const float3 &p2, MutableSpan< float3 > r_positions)
 
static Array< NeighborCurves > blender::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_neighbors (const Span< NeighborCurves > neighbors_per_curve, const T &fallback, const GetValueF &get_value_from_neighbor, MutableSpan< T > r_interpolated_values)
 
static void blender::geometry::interpolate_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::interpolate_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 ReverseUVSampler &reverse_uv_sampler, const Span< float3 > corner_normals_su)
 
AddCurvesOnMeshOutputs blender::geometry::add_curves_on_mesh (bke::CurvesGeometry &curves, const AddCurvesOnMeshInputs &inputs)
 

Variables

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