Changeset View
Changeset View
Standalone View
Standalone View
source/blender/geometry/GEO_add_curves_on_mesh.hh
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | struct AddCurvesOnMeshInputs { | ||||
| */ | */ | ||||
| KDTree_3d *old_roots_kdtree = nullptr; | KDTree_3d *old_roots_kdtree = nullptr; | ||||
| bool r_uv_error = false; | bool r_uv_error = false; | ||||
| }; | }; | ||||
| struct AddCurvesOnMeshOutputs { | struct AddCurvesOnMeshOutputs { | ||||
| bool uv_error = false; | bool uv_error = false; | ||||
| IndexRange new_curves_range; | |||||
| IndexRange new_points_range; | |||||
| }; | }; | ||||
| /** | /** | ||||
| * Generate new curves on a mesh surface with the given inputs. Existing curves stay intact. | * Generate new curves on a mesh surface with the given inputs. Existing curves stay intact. | ||||
| */ | */ | ||||
| AddCurvesOnMeshOutputs add_curves_on_mesh(bke::CurvesGeometry &curves, | AddCurvesOnMeshOutputs add_curves_on_mesh(bke::CurvesGeometry &curves, | ||||
| const AddCurvesOnMeshInputs &inputs); | const AddCurvesOnMeshInputs &inputs); | ||||
| float3 compute_surface_point_normal(const MLoopTri &looptri, | float3 compute_surface_point_normal(const MLoopTri &looptri, | ||||
| const float3 &bary_coord, | const float3 &bary_coord, | ||||
| const Span<float3> corner_normals); | const Span<float3> corner_normals); | ||||
| } // namespace blender::geometry | } // namespace blender::geometry | ||||