Blender  V3.3
GEO_add_curves_on_mesh.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
5 #include "BLI_float4x4.hh"
6 #include "BLI_kdtree.h"
7 #include "BLI_math_vector.hh"
8 #include "BLI_span.hh"
9 
10 #include "BKE_bvhutils.h"
11 #include "BKE_curves.hh"
12 
13 #include "DNA_mesh_types.h"
14 #include "DNA_meshdata_types.h"
15 
17 
18 namespace blender::geometry {
19 
23 
25  bool interpolate_length = false;
26  bool interpolate_shape = false;
28  float fallback_curve_length = 0.0f;
30 
32  const Mesh *surface = nullptr;
35 
37 
42  KDTree_3d *old_roots_kdtree = nullptr;
43 
44  bool r_uv_error = false;
45 };
46 
48  bool uv_error = false;
49 };
50 
56 
58  const float3 &bary_coord,
59  const Span<float3> corner_normals);
60 
61 } // namespace blender::geometry
Low-level operations for curves.
A KD-tree for nearest neighbor search.
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to curves
float3 compute_surface_point_normal(const MLoopTri &looptri, const float3 &bary_coord, const Span< float3 > corner_normals)
AddCurvesOnMeshOutputs add_curves_on_mesh(bke::CurvesGeometry &curves, const AddCurvesOnMeshInputs &inputs)
static bNodeSocketTemplate inputs[]