Blender V5.3
blender::nodes::node_geo_extrude_mesh_cc Namespace Reference

Classes

struct  AttributeOutputs

Typedefs

using IDsByDomain = std::array<Vector<StringRef>, ATTR_DOMAIN_NUM>

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_init (bNodeTree *, bNode *node)
static void save_selection_as_attribute (MutableAttributeAccessor attributes, const StringRef name, const AttrDomain domain, const IndexMask &selection)
static void remove_non_propagated_attributes (MutableAttributeAccessor attributes, const AttributeFilter &attribute_filter)
static void remove_unsupported_vert_data (Mesh &mesh)
static void remove_unsupported_corner_data (Mesh &mesh)
static void expand_mesh (Mesh &mesh, const int vert_expand, const int edge_expand, const int face_expand, const int loop_expand)
static CustomData & mesh_custom_data_for_domain (Mesh &mesh, const AttrDomain domain)
static std::optional< MutableSpan< int > > get_orig_index_layer (Mesh &mesh, const AttrDomain domain)
template<typename SelectionT>
static GroupedSpan< int > gather_groups (const GroupedSpan< int > src_groups, const SelectionT &selection, Array< int > &r_offsets, Array< int > &r_indices)
static GPointer mixing_default_value (const CPPType &type)
static void mix_groups_or_default (const GSpan src, const GroupedSpan< int > groups, const GPointer default_value, GMutableSpan dst)
static void mix_groups_or_default (const GSpan src, const GroupedSpan< int > groups, GMutableSpan dst)
static IDsByDomain get_transfer_attribute_names (const AttributeAccessor attributes, const Set< StringRef > &skip)
static bool is_empty_domain (const AttributeAccessor attributes, const Set< StringRef > &skip, const AttrDomain domain)
static void gather_attributes (MutableAttributeAccessor attributes, const Span< StringRef > names, const Span< int > indices, const IndexRange new_range)
static void gather_attributes (MutableAttributeAccessor attributes, const Span< StringRef > names, const IndexMask &indices, const IndexRange new_range)
static void gather_vert_attributes (Mesh &mesh, const Span< StringRef > names, const Span< int > indices, const IndexRange new_range)
static void gather_vert_attributes (Mesh &mesh, const Span< StringRef > names, const IndexMask &indices, const IndexRange new_range)
static void extrude_mesh_vertices (Mesh &mesh, const Field< bool > &selection_field, const Field< float3 > &offset_field, const AttributeOutputs &attribute_outputs, const AttributeFilter &attribute_filter)
static void fill_quad_consistent_direction (const Span< int > other_face_verts, const Span< int > other_face_edges, MutableSpan< int > new_corner_verts, MutableSpan< int > new_corner_edges, const int vert_connected_to_face_1, const int vert_connected_to_face_2, const int vert_across_from_face_1, const int vert_across_from_face_2, const int edge_connected_to_face, const int connecting_edge_1, const int edge_across_from_face, const int connecting_edge_2)
static GroupedSpan< int > build_vert_to_edge_map (const Span< int2 > edges, const IndexMask &edge_mask, const int verts_num, Array< int > &r_offsets, Array< int > &r_indices)
static void tag_mesh_added_faces (Mesh &mesh)
static void extrude_mesh_edges (Mesh &mesh, const Field< bool > &selection_field, const Field< float3 > &offset_field, const AttributeOutputs &attribute_outputs, const AttributeFilter &attribute_filter)
static VectorSet< int > vert_indices_from_edges (const Mesh &mesh, const Span< int > edge_indices)
static void extrude_mesh_face_regions (Mesh &mesh, const Field< bool > &selection_field, const Field< float3 > &offset_field, const AttributeOutputs &attribute_outputs, const AttributeFilter &attribute_filter)
static void extrude_individual_mesh_faces (Mesh &mesh, const Field< bool > &selection_field, const Field< float3 > &offset_field, const AttributeOutputs &attribute_outputs, const AttributeFilter &attribute_filter)
static void node_geo_exec (GeoNodeExecParams params)
static void node_rna (StructRNA *srna)
static void node_register ()

Typedef Documentation

◆ IDsByDomain

Function Documentation

◆ build_vert_to_edge_map()

◆ expand_mesh()

void blender::nodes::node_geo_extrude_mesh_cc::expand_mesh ( Mesh & mesh,
const int vert_expand,
const int edge_expand,
const int face_expand,
const int loop_expand )
static

◆ extrude_individual_mesh_faces()

void blender::nodes::node_geo_extrude_mesh_cc::extrude_individual_mesh_faces ( Mesh & mesh,
const Field< bool > & selection_field,
const Field< float3 > & offset_field,
const AttributeOutputs & attribute_outputs,
const AttributeFilter & attribute_filter )
static

Definition at line 1242 of file node_geo_extrude_mesh.cc.

References blender::fn::FieldEvaluator::add_with_destination(), blender::IndexRange::after(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), attribute, blender::fn::FieldEvaluator::evaluate(), expand_mesh(), extrude_individual_mesh_faces(), blender::bke::mesh::face_corner_next(), blender::offset_indices::fill_constant_group_size(), blender::index_mask::IndexMask::foreach_index(), blender::array_utils::gather(), gather_attributes(), blender::offset_indices::gather_selected_offsets(), blender::array_utils::gather_to_groups(), blender::bke::attribute_math::gather_to_groups(), gather_vert_attributes(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), get_orig_index_layer(), get_transfer_attribute_names(), blender::exec_mode::grain_size(), blender::IndexRange::index_range(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::attribute_math::mix_groups(), ORIGINDEX_NONE, remove_non_propagated_attributes(), remove_unsupported_corner_data(), remove_unsupported_vert_data(), save_selection_as_attribute(), blender::fn::FieldEvaluator::set_selection(), blender::nodes::node_geo_extrude_mesh_cc::AttributeOutputs::side_id, blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::size(), blender::index_mask::IndexMask::slice(), blender::MutableSpan< T >::slice(), tag_mesh_added_faces(), blender::nodes::node_geo_extrude_mesh_cc::AttributeOutputs::top_id, and blender::offset_indices::OffsetIndices< T >::total_size().

Referenced by extrude_individual_mesh_faces(), and node_geo_exec().

◆ extrude_mesh_edges()

void blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_edges ( Mesh & mesh,
const Field< bool > & selection_field,
const Field< float3 > & offset_field,
const AttributeOutputs & attribute_outputs,
const AttributeFilter & attribute_filter )
static

Definition at line 563 of file node_geo_extrude_mesh.cc.

References blender::offset_indices::accumulate_counts_to_offsets(), blender::fn::FieldEvaluator::add(), blender::IndexRange::after(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::GArray< Allocator >::as_span(), attribute, blender::bke::mesh::build_edge_to_face_map(), blender::index_mask::build_reverse_map< int >(), build_vert_to_edge_map(), blender::CPPType::default_value(), ELEM, blender::fn::FieldEvaluator::evaluate(), expand_mesh(), extrude_mesh_edges(), blender::offset_indices::fill_constant_group_size(), fill_quad_consistent_direction(), blender::Span< T >::first(), blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::array_utils::gather(), blender::bke::attribute_math::gather(), gather_attributes(), gather_groups(), gather_vert_attributes(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::VArrayCommon< T >::get_internal_single(), get_orig_index_layer(), get_transfer_attribute_names(), blender::exec_mode::grain_size(), blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::index_mask::IndexMask::is_empty(), is_empty_domain(), blender::VArrayCommon< T >::is_single(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), mix_groups_or_default(), ORIGINDEX_NONE, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), remove_non_propagated_attributes(), remove_unsupported_corner_data(), remove_unsupported_vert_data(), save_selection_as_attribute(), blender::fn::FieldEvaluator::set_selection(), blender::nodes::node_geo_extrude_mesh_cc::AttributeOutputs::side_id, blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::offset_indices::GroupedSpan< T >::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::size(), blender::index_mask::IndexMask::slice(), blender::MutableSpan< T >::slice(), tag_mesh_added_faces(), blender::nodes::node_geo_extrude_mesh_cc::AttributeOutputs::top_id, blender::offset_indices::OffsetIndices< T >::total_size(), and blender::geometry::vert_selection_from_edge().

Referenced by extrude_mesh_edges(), and node_geo_exec().

◆ extrude_mesh_face_regions()

void blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_face_regions ( Mesh & mesh,
const Field< bool > & selection_field,
const Field< float3 > & offset_field,
const AttributeOutputs & attribute_outputs,
const AttributeFilter & attribute_filter )
static

Edges connected to one selected face are on the boundary of a region and will be duplicated into a "side face". Edges inside a region will be duplicated to leave any original faces unchanged.

Definition at line 857 of file node_geo_extrude_mesh.cc.

References blender::fn::FieldEvaluator::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::IndexRange::after(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), attribute, blender::bke::mesh::build_edge_to_face_map(), build_vert_to_edge_map(), blender::fn::FieldEvaluator::evaluate(), expand_mesh(), extrude_mesh_face_regions(), blender::offset_indices::fill_constant_group_size(), fill_quad_consistent_direction(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_indices(), blender::array_utils::gather(), blender::bke::attribute_math::gather(), gather_attributes(), gather_groups(), gather_vert_attributes(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), get_transfer_attribute_names(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_try(), blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::MutableSpan< T >::is_empty(), blender::VArrayCommon< T >::is_single(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), mix_groups_or_default(), blender::threading::parallel_for(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), remove_non_propagated_attributes(), remove_unsupported_corner_data(), remove_unsupported_vert_data(), blender::fn::FieldEvaluator::set_selection(), blender::IndexRange::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), blender::index_mask::IndexMask::to_bools(), vert_indices_from_edges(), and blender::geometry::vert_selection_from_face().

Referenced by extrude_mesh_face_regions(), and node_geo_exec().

◆ extrude_mesh_vertices()

void blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_vertices ( Mesh & mesh,
const Field< bool > & selection_field,
const Field< float3 > & offset_field,
const AttributeOutputs & attribute_outputs,
const AttributeFilter & attribute_filter )
static

◆ fill_quad_consistent_direction()

void blender::nodes::node_geo_extrude_mesh_cc::fill_quad_consistent_direction ( const Span< int > other_face_verts,
const Span< int > other_face_edges,
MutableSpan< int > new_corner_verts,
MutableSpan< int > new_corner_edges,
const int vert_connected_to_face_1,
const int vert_connected_to_face_2,
const int vert_across_from_face_1,
const int vert_across_from_face_2,
const int edge_connected_to_face,
const int connecting_edge_1,
const int edge_across_from_face,
const int connecting_edge_2 )
static

◆ gather_attributes() [1/2]

void blender::nodes::node_geo_extrude_mesh_cc::gather_attributes ( MutableAttributeAccessor attributes,
const Span< StringRef > names,
const IndexMask & indices,
const IndexRange new_range )
static

◆ gather_attributes() [2/2]

void blender::nodes::node_geo_extrude_mesh_cc::gather_attributes ( MutableAttributeAccessor attributes,
const Span< StringRef > names,
const Span< int > indices,
const IndexRange new_range )
static

◆ gather_groups()

◆ gather_vert_attributes() [1/2]

◆ gather_vert_attributes() [2/2]

◆ get_orig_index_layer()

std::optional< MutableSpan< int > > blender::nodes::node_geo_extrude_mesh_cc::get_orig_index_layer ( Mesh & mesh,
const AttrDomain domain )
static

◆ get_transfer_attribute_names()

◆ is_empty_domain()

◆ mesh_custom_data_for_domain()

CustomData & blender::nodes::node_geo_extrude_mesh_cc::mesh_custom_data_for_domain ( Mesh & mesh,
const AttrDomain domain )
static

◆ mix_groups_or_default() [1/2]

◆ mix_groups_or_default() [2/2]

void blender::nodes::node_geo_extrude_mesh_cc::mix_groups_or_default ( const GSpan src,
const GroupedSpan< int > groups,
GMutableSpan dst )
static

◆ mixing_default_value()

GPointer blender::nodes::node_geo_extrude_mesh_cc::mixing_default_value ( const CPPType & type)
static

◆ node_declare()

◆ node_geo_exec()

◆ node_init()

void blender::nodes::node_geo_extrude_mesh_cc::node_init ( bNodeTree * ,
bNode * node )
static

◆ node_layout()

void blender::nodes::node_geo_extrude_mesh_cc::node_layout ( ui::Layout & layout,
bContext * ,
PointerRNA * ptr )
static

◆ node_register()

◆ node_rna()

◆ remove_non_propagated_attributes()

◆ remove_unsupported_corner_data()

◆ remove_unsupported_vert_data()

◆ save_selection_as_attribute()

◆ tag_mesh_added_faces()

void blender::nodes::node_geo_extrude_mesh_cc::tag_mesh_added_faces ( Mesh & mesh)
static

◆ vert_indices_from_edges()