Blender
V3.3
|
Classes | |
class | SocketSearchOp |
struct | TrimLocation |
|
static |
Definition at line 499 of file node_geo_curve_trim.cc.
References blender::fn::FieldEvaluator::add(), ATTR_DOMAIN_CURVE, component(), curve, curves_to_curve_eval(), GeometrySet::get_component_for_write(), GeometrySet::get_curves_for_read(), GeometrySet::has_curves(), blender::threading::parallel_for(), and splines.
Referenced by node_geo_exec().
|
static |
|
static |
Identical operation as linear_trim_data, but copy data to a new #MutableSpan rather than modifying the original data.
Definition at line 151 of file node_geo_curve_trim.cc.
References blender::MutableSpan< T >::copy_from(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::factor, blender::MutableSpan< T >::first(), blender::MutableSpan< T >::last(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::left_index, blender::nodes::node_geo_curve_trim_cc::TrimLocation::right_index, src, and T.
|
static |
Definition at line 167 of file node_geo_curve_trim.cc.
References blender::Span< T >::begin(), blender::math::clamp(), BezierSpline::control_point_offsets(), blender::Span< T >::end(), left, blender::bke::attribute_accessor_functions::lookup(), offset, right, and BezierSpline::size().
Referenced by to_single_point_bezier(), and trim_bezier_spline().
|
static |
Definition at line 20 of file node_geo_curve_trim.cc.
References usdtokens::b(), GEO_COMPONENT_TYPE_CURVE, GEO_NODE_CURVE_SAMPLE_FACTOR, GEO_NODE_CURVE_SAMPLE_LENGTH, min, N_, node, PROP_DISTANCE, and PROP_FACTOR.
Referenced by register_node_type_geo_curve_trim().
|
static |
Definition at line 91 of file node_geo_curve_trim.cc.
References GEO_NODE_CURVE_SAMPLE_FACTOR, GEO_NODE_CURVE_SAMPLE_LENGTH, IFACE_, blender::nodes::NodeDeclaration::inputs(), blender::nodes::NodeDeclaration::outputs(), params, blender::nodes::search_link_ops_for_declarations(), SOCK_FLOAT, and SOCK_IN.
Referenced by register_node_type_geo_curve_trim().
|
static |
Definition at line 576 of file node_geo_curve_trim.cc.
References GEO_NODE_CURVE_SAMPLE_FACTOR, GEO_NODE_CURVE_SAMPLE_LENGTH, geometry_set_curve_trim(), NodeGeometryCurveTrim::mode, params, and GeometryComponentEditData::remember_deformed_curve_positions_if_necessary().
Referenced by register_node_type_geo_curve_trim().
|
static |
Definition at line 55 of file node_geo_curve_trim.cc.
References data, GEO_NODE_CURVE_SAMPLE_FACTOR, and node.
|
static |
Definition at line 50 of file node_geo_curve_trim.cc.
References ptr, UI_ITEM_R_EXPAND, and uiItemR().
Referenced by register_node_type_geo_curve_trim().
|
static |
Definition at line 63 of file node_geo_curve_trim.cc.
References GEO_NODE_CURVE_SAMPLE_FACTOR, GEO_NODE_CURVE_SAMPLE_LENGTH, NodeGeometryCurveTrim::mode, bNodeSocket::next, next, node, nodeSetSocketAvailability(), and ntree.
Referenced by register_node_type_geo_curve_trim().
|
static |
Definition at line 121 of file node_geo_curve_trim.cc.
References BLI_assert, data, and T.
Referenced by trim_bezier_spline().
|
static |
Definition at line 398 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, BEZIER_HANDLE_FREE, BezierSpline::calculate_segment_insertion(), blender::attribute_math::convert_to_static_type(), data, blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_write(), BezierSpline::handle_positions_left(), BezierSpline::handle_positions_right(), BezierSpline::handle_types_left(), BezierSpline::handle_types_right(), BezierSpline::InsertResult::left_handle, blender::bke::attribute_accessor_functions::lookup(), lookup_control_point_position(), BezierSpline::InsertResult::position, BezierSpline::positions(), BezierSpline::radii(), Spline::resize(), BezierSpline::InsertResult::right_handle, BezierSpline::tilts(), trim(), and UNUSED.
Referenced by to_single_point_spline().
|
static |
Definition at line 388 of file node_geo_curve_trim.cc.
|
static |
Definition at line 393 of file node_geo_curve_trim.cc.
References blender::MutableSpan< T >::first(), src, and trim().
|
static |
Definition at line 447 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, blender::attribute_math::convert_to_static_type(), blender::bke::CustomDataAttributes::create(), blender::bke::AttributeMetaData::data_type, Spline::evaluated_positions(), blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), blender::VArrayCommon< T >::get_internal_span(), Spline::interpolate_to_evaluated(), blender::bke::attribute_accessor_functions::lookup(), PolySpline::positions(), PolySpline::radii(), Spline::radii(), PolySpline::resize(), src, PolySpline::tilts(), Spline::tilts(), and trim().
Referenced by to_single_point_spline().
|
static |
Definition at line 427 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, blender::attribute_math::convert_to_static_type(), data, blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_write(), blender::bke::attribute_accessor_functions::lookup(), Spline::positions(), Spline::radii(), Spline::resize(), Spline::tilts(), trim(), and UNUSED.
Referenced by to_single_point_spline().
|
static |
Definition at line 481 of file node_geo_curve_trim.cc.
References BLI_assert_unreachable, CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, blender::bke::attribute_accessor_functions::lookup(), to_single_point_bezier(), to_single_point_nurbs(), and to_single_point_poly().
|
static |
Trim Bezier splines by adjusting the first and last handles and control points to maintain the original shape.
Definition at line 275 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, BLI_assert, BezierSpline::calculate_segment_insertion(), blender::math::clamp(), BezierSpline::control_point_offsets(), blender::attribute_math::convert_to_static_type(), Spline::LookupResult::evaluated_index, Spline::LookupResult::factor, blender::nodes::node_geo_curve_trim_cc::TrimLocation::factor, blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_write(), BezierSpline::InsertResult::handle_next, BezierSpline::handle_positions_left(), BezierSpline::handle_positions_right(), BezierSpline::InsertResult::handle_prev, BezierSpline::InsertResult::left_handle, blender::nodes::node_geo_curve_trim_cc::TrimLocation::left_index, lookup_control_point_position(), BezierSpline::InsertResult::position, BezierSpline::positions(), BezierSpline::radii(), BezierSpline::resize(), BezierSpline::InsertResult::right_handle, blender::nodes::node_geo_curve_trim_cc::TrimLocation::right_index, shift_slice_to_start(), src, BezierSpline::tilts(), and UNUSED.
Referenced by trim_spline().
|
static |
Trim NURB splines by converting to a poly spline.
Definition at line 219 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, BLI_assert, BLI_assert_unreachable, blender::attribute_math::convert_to_static_type(), blender::bke::CustomDataAttributes::create(), blender::bke::AttributeMetaData::data_type, Spline::LookupResult::evaluated_index, Spline::evaluated_positions(), Spline::LookupResult::factor, blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_read(), blender::bke::CustomDataAttributes::get_for_write(), blender::VArrayCommon< T >::get_internal_span(), Spline::interpolate_to_evaluated(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::left_index, Spline::LookupResult::next_evaluated_index, PolySpline::positions(), PolySpline::radii(), Spline::radii(), PolySpline::resize(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::right_index, src, PolySpline::tilts(), and Spline::tilts().
Referenced by trim_spline().
|
static |
Definition at line 185 of file node_geo_curve_trim.cc.
References ATTR_DOMAIN_POINT, Spline::attributes, BLI_assert, blender::attribute_math::convert_to_static_type(), Spline::LookupResult::evaluated_index, Spline::LookupResult::factor, blender::bke::CustomDataAttributes::foreach_attribute(), blender::bke::CustomDataAttributes::get_for_write(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::left_index, Spline::LookupResult::next_evaluated_index, Spline::positions(), Spline::radii(), Spline::resize(), blender::nodes::node_geo_curve_trim_cc::TrimLocation::right_index, src, Spline::tilts(), and UNUSED.
Referenced by trim_spline().
|
static |
Definition at line 366 of file node_geo_curve_trim.cc.
References BLI_assert_unreachable, CURVE_TYPE_BEZIER, CURVE_TYPE_CATMULL_ROM, CURVE_TYPE_NURBS, CURVE_TYPE_POLY, trim_bezier_spline(), trim_nurbs_spline(), and trim_poly_spline().