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.h" | ||||
| #include "BKE_curves.hh" | #include "BKE_curves.hh" | ||||
| #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; | ||||
| struct Scene; | struct Scene; | ||||
| struct BVHTreeFromMesh; | struct BVHTreeFromMesh; | ||||
| ▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| VArray<float> get_curves_selection(const Curves &curves_id); | VArray<float> get_curves_selection(const Curves &curves_id); | ||||
| /** | /** | ||||
| * Get the floating point selection on the curve domain, copied from curves if necessary. | * Get the floating point selection on the curve domain, copied from curves if necessary. | ||||
| */ | */ | ||||
| VArray<float> get_point_selection(const Curves &curves_id); | VArray<float> get_point_selection(const Curves &curves_id); | ||||
| /** | |||||
| * Find curves that have any point selected (a selection factor greater than zero), | |||||
| * or curves that have their own selection factor greater than zero. | |||||
| */ | |||||
| IndexMask retrieve_selected_curves(const Curves &curves_id, Vector<int64_t> &r_indices); | |||||
| void move_last_point_and_resample(MutableSpan<float3> positions, const float3 &new_last_position); | void move_last_point_and_resample(MutableSpan<float3> positions, const float3 &new_last_position); | ||||
| class CurvesSculptCommonContext { | class CurvesSculptCommonContext { | ||||
| public: | public: | ||||
| const Depsgraph *depsgraph = nullptr; | const Depsgraph *depsgraph = nullptr; | ||||
| const Scene *scene = nullptr; | const Scene *scene = nullptr; | ||||
| ARegion *region = nullptr; | ARegion *region = nullptr; | ||||
| const View3D *v3d = nullptr; | const View3D *v3d = nullptr; | ||||
| Show All 19 Lines | |||||