Use the existing "remove_points_and_split" utility added
for grease pencil to implement the operator for the curves
object type. The whole structure is similar to the recently
added point cloud separate operator (4cd3540579).
Pull Request: https://projects.blender.org/blender/blender/pulls/134763
19 lines
474 B
C++
19 lines
474 B
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "BKE_curves.hh"
|
|
|
|
namespace blender::geometry {
|
|
|
|
/**
|
|
* Remove the points in the \a point_mask and split each curve at the points that are removed (if
|
|
* necessary).
|
|
*/
|
|
bke::CurvesGeometry remove_points_and_split(const bke::CurvesGeometry &curves,
|
|
const IndexMask &mask);
|
|
|
|
} // namespace blender::geometry
|