Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/curves_sculpt_intern.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #pragma once | #pragma once | ||||
| #include <optional> | #include <optional> | ||||
| #include "curves_sculpt_intern.h" | #include "curves_sculpt_intern.h" | ||||
| #include "paint_intern.h" | #include "paint_intern.h" | ||||
| #include "BLI_math_vector.hh" | #include "BLI_math_vector.hh" | ||||
| #include "BLI_vector.hh" | #include "BLI_vector.hh" | ||||
| #include "BLI_virtual_array.hh" | #include "BLI_virtual_array.hh" | ||||
| #include "BKE_attribute.h" | #include "BKE_attribute.hh" | ||||
| #include "BKE_crazyspace.hh" | #include "BKE_crazyspace.hh" | ||||
| #include "BKE_curves.hh" | #include "BKE_curves.hh" | ||||
| #include "ED_curves.h" | |||||
| #include "ED_curves_sculpt.h" | #include "ED_curves_sculpt.h" | ||||
| struct ARegion; | struct ARegion; | ||||
| struct RegionView3D; | struct RegionView3D; | ||||
| struct Depsgraph; | struct Depsgraph; | ||||
| struct View3D; | struct View3D; | ||||
| struct Object; | struct Object; | ||||
| struct Brush; | struct Brush; | ||||
| ▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | std::optional<CurvesBrush3D> sample_curves_3d_brush(const Depsgraph &depsgraph, | ||||
| const View3D &v3d, | const View3D &v3d, | ||||
| const RegionView3D &rv3d, | const RegionView3D &rv3d, | ||||
| const Object &curves_object, | const Object &curves_object, | ||||
| const float2 &brush_pos_re, | const float2 &brush_pos_re, | ||||
| const float brush_radius_re); | const float brush_radius_re); | ||||
| Vector<float4x4> get_symmetry_brush_transforms(eCurvesSymmetryType symmetry); | Vector<float4x4> get_symmetry_brush_transforms(eCurvesSymmetryType symmetry); | ||||
| /** | bke::SpanAttributeWriter<float> float_selection_ensure(Curves &curves_id); | ||||
| * Get the floating point selection on the curve domain, averaged from points if necessary. | |||||
| */ | |||||
| VArray<float> get_curves_selection(const Curves &curves_id); | |||||
| /** | |||||
| * Get the floating point selection on the curve domain, copied from curves if necessary. | |||||
| */ | |||||
| VArray<float> get_point_selection(const Curves &curves_id); | |||||
| /** See #move_last_point_and_resample. */ | /** See #move_last_point_and_resample. */ | ||||
| struct MoveAndResampleBuffers { | struct MoveAndResampleBuffers { | ||||
| Array<float> orig_lengths; | Array<float> orig_lengths; | ||||
| Array<float> new_lengths; | Array<float> new_lengths; | ||||
| Array<int> sample_indices; | Array<int> sample_indices; | ||||
| Array<float> sample_factors; | Array<float> sample_factors; | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||