|
Blender
V2.93
|
Namespaces | |
| derived_node_tree_types | |
| node_tree_ref_types | |
Classes | |
| class | DTreeContext |
| class | DNode |
| class | DSocket |
| class | DInputSocket |
| class | DOutputSocket |
| class | DerivedNodeTree |
| class | GeoNodeExecParams |
| struct | FloatMathOperationInfo |
| class | MFNetworkTreeMap |
| struct | CommonMFNetworkBuilderData |
| class | MFNetworkBuilderBase |
| class | SocketMFNetworkBuilder |
| class | NodeMFNetworkBuilder |
| class | SocketRef |
| class | InputSocketRef |
| class | OutputSocketRef |
| class | NodeRef |
| class | LinkRef |
| class | InternalLinkRef |
| class | NodeTreeRef |
| struct | ConversionFunctions |
| class | DataTypeConversions |
Typedefs | |
| using | MultiFunctionByNode = Map< DNode, const fn::MultiFunction * > |
| using | NodeTreeRefMap = Map< bNodeTree *, std::unique_ptr< const NodeTreeRef > > |
Enumerations | |
| enum class | NodeExpandType { SingleFunctionNode , MultipleFunctionNodes , HasDummyNodes } |
| using blender::nodes::MultiFunctionByNode = typedef Map<DNode, const fn::MultiFunction *> |
Definition at line 387 of file NOD_node_tree_multi_function.hh.
| using blender::nodes::NodeTreeRefMap = typedef Map<bNodeTree *, std::unique_ptr<const NodeTreeRef> > |
Definition at line 284 of file NOD_node_tree_ref.hh.
|
strong |
A single node is allowed to expand into multiple nodes before evaluation. Depending on what nodes it expands to, it belongs a different type of the ones below.
| Enumerator | |
|---|---|
| SingleFunctionNode | |
| MultipleFunctionNodes | |
| HasDummyNodes | |
Definition at line 266 of file node_tree_multi_function.cc.
|
static |
Definition at line 30 of file type_conversions.cc.
References blender::nodes::DataTypeConversions::add(), and blender::fn::CPPType::name().
|
static |
Definition at line 167 of file node_geo_point_instance.cc.
References InstancesComponent::add_instance(), ATTR_DOMAIN_POINT, GeometryComponent::attribute_domain_size(), GeometryComponent::attribute_get_for_read(), blender::float4x4::from_loc_eul_scale(), get_instanced_data(), and params.
Referenced by geo_node_point_instance_exec().
|
static |
Definition at line 488 of file node_geo_point_distribute.cc.
References component(), compute_special_attributes(), and interpolate_existing_attributes().
Referenced by geo_node_point_distribute_exec().
|
static |
Definition at line 53 of file node_geo_align_rotation_to_vector.cc.
References angle(), angle_normalized_v3v3(), axis_angle_to_mat3(), blender::float3::cross_high_precision(), eul_to_mat3(), is_zero_v3(), mat3_to_eul(), mul_m3_m3m3(), and mul_v3_m3v3().
Referenced by align_rotations_on_component().
|
static |
Definition at line 96 of file node_geo_align_rotation_to_vector.cc.
References angle(), angle_signed_on_axis_v3v3_v3(), axis_angle_to_mat3(), eul_to_mat3(), is_zero_v3(), M_PI, mat3_to_eul(), mul_m3_m3m3(), and mul_v3_m3v3().
Referenced by align_rotations_on_component().
|
static |
Definition at line 140 of file node_geo_align_rotation_to_vector.cc.
References align_rotations_auto_pivot(), align_rotations_fixed_pivot(), ATTR_DOMAIN_POINT, NodeGeometryAlignRotationToVector::axis, CD_PROP_FLOAT3, component(), GEO_NODE_ALIGN_ROTATION_TO_VECTOR_PIVOT_AXIS_AUTO, node, params, and NodeGeometryAlignRotationToVector::pivot_axis.
Referenced by geo_node_align_rotation_to_vector_exec().
|
static |
Definition at line 164 of file node_geo_attribute_proximity.cc.
References ATTR_DOMAIN_POINT, BLI_assert, bvh_from_mesh(), bvh_from_pointcloud(), CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), free_bvhtree_from_mesh(), free_bvhtree_from_pointcloud(), GEO_NODE_ATTRIBUTE_PROXIMITY_TARGET_GEOMETRY_ELEMENT_POINTS, GeometrySet::get_mesh_for_read(), GeometrySet::get_pointcloud_for_read(), GeometrySet::has_mesh(), GeometrySet::has_pointcloud(), if(), node, params, proximity_calc(), and NodeGeometryAttributeProximity::target_geometry_element.
Referenced by geo_node_attribute_proximity_exec().
|
static |
Definition at line 249 of file node_geo_attribute_compare.cc.
References OutputAttributePtr::apply_span_and_save(), CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), do_equal_operation_bool(), do_equal_operation_color4f(), do_equal_operation_float(), do_equal_operation_float3(), do_math_operation(), do_not_equal_operation_bool(), do_not_equal_operation_color4f(), do_not_equal_operation_float(), do_not_equal_operation_float3(), get_data_type(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), node, NODE_FLOAT_COMPARE_EQUAL, NODE_FLOAT_COMPARE_NOT_EQUAL, NodeAttributeCompare::operation, operation_tests_equality(), and params.
Referenced by geo_node_attribute_compare_exec().
|
static |
Definition at line 91 of file node_geo_attribute_convert.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_AUTO, BLI_assert, component(), conversion_can_be_skipped(), blender::fn::CPPType::copy_to_initialized_n(), blender::bke::custom_data_type_to_cpp_type(), blender::fn::GSpan::data(), blender::fn::GMutableSpan::data(), Error, get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), blender::fn::GSpan::is_empty(), blender::fn::GMutableSpan::is_empty(), params, blender::fn::GSpan::size(), blender::fn::GMutableSpan::size(), and TIP_.
Referenced by geo_node_attribute_convert_exec().
|
static |
Definition at line 219 of file node_geo_attribute_math.cc.
References OutputAttributePtr::apply_span_and_save(), CD_PROP_FLOAT, component(), do_math_operation(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), node, NodeAttributeMath::operation, operation_use_input_b(), operation_use_input_c(), and params.
Referenced by geo_node_attribute_math_exec().
|
static |
Definition at line 144 of file node_geo_attribute_mix.cc.
References blender::bke::attribute_data_type_highest_complexity(), NodeAttributeMix::blend_type, CD_PROP_BOOL, component(), do_mix_operation(), get_result_domain(), node, params, and OutputAttributePtr::save().
Referenced by geo_node_attribute_mix_exec().
|
static |
Definition at line 389 of file node_geo_attribute_vector_math.cc.
References CD_PROP_FLOAT3, component(), do_math_operation_fl3_fl3_fl3_to_fl3(), do_math_operation_fl3_fl3_fl_to_fl3(), do_math_operation_fl3_fl3_to_fl(), do_math_operation_fl3_fl3_to_fl3(), do_math_operation_fl3_fl_to_fl3(), do_math_operation_fl3_to_fl(), do_math_operation_fl3_to_fl3(), get_result_domain(), node, NODE_VECTOR_MATH_ABSOLUTE, NODE_VECTOR_MATH_ADD, NODE_VECTOR_MATH_CEIL, NODE_VECTOR_MATH_COSINE, NODE_VECTOR_MATH_CROSS_PRODUCT, NODE_VECTOR_MATH_DISTANCE, NODE_VECTOR_MATH_DIVIDE, NODE_VECTOR_MATH_DOT_PRODUCT, NODE_VECTOR_MATH_FACEFORWARD, NODE_VECTOR_MATH_FLOOR, NODE_VECTOR_MATH_FRACTION, NODE_VECTOR_MATH_LENGTH, NODE_VECTOR_MATH_MAXIMUM, NODE_VECTOR_MATH_MINIMUM, NODE_VECTOR_MATH_MODULO, NODE_VECTOR_MATH_MULTIPLY, NODE_VECTOR_MATH_NORMALIZE, NODE_VECTOR_MATH_PROJECT, NODE_VECTOR_MATH_REFLECT, NODE_VECTOR_MATH_REFRACT, NODE_VECTOR_MATH_SCALE, NODE_VECTOR_MATH_SINE, NODE_VECTOR_MATH_SNAP, NODE_VECTOR_MATH_SUBTRACT, NODE_VECTOR_MATH_TANGENT, NODE_VECTOR_MATH_WRAP, NodeAttributeVectorMath::operation, operation_get_read_type_b(), operation_get_read_type_c(), operation_get_result_type(), operation_use_input_b(), operation_use_input_c(), params, and OutputAttributePtr::save().
Referenced by geo_node_attribute_vector_math_exec().
|
static |
Definition at line 150 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 134 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 142 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 146 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 138 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 142 of file node_geo_point_distribute.cc.
Referenced by update_elimination_mask_for_close_points().
|
static |
Definition at line 129 of file node_geo_attribute_proximity.cc.
References BKE_bvhtree_from_mesh_get(), BVHTREE_FROM_EDGES, BVHTREE_FROM_LOOPTRI, BVHTREE_FROM_VERTS, GEO_NODE_ATTRIBUTE_PROXIMITY_TARGET_GEOMETRY_ELEMENT_EDGES, GEO_NODE_ATTRIBUTE_PROXIMITY_TARGET_GEOMETRY_ELEMENT_FACES, GEO_NODE_ATTRIBUTE_PROXIMITY_TARGET_GEOMETRY_ELEMENT_POINTS, and BVHTreeFromMesh::tree.
Referenced by attribute_calc_proximity().
|
static |
Definition at line 154 of file node_geo_attribute_proximity.cc.
References BKE_bvhtree_from_pointcloud_get(), and BVHTreeFromPointCloud::tree.
Referenced by attribute_calc_proximity().
|
static |
Definition at line 97 of file node_geo_mesh_primitive_uv_sphere.cc.
References MEdge::flag, ME_EDGEDRAW, ME_EDGERENDER, sphere_vert_total(), MEdge::v1, and MEdge::v2.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 147 of file node_geo_mesh_primitive_uv_sphere.cc.
References MLoop::e, MPoly::loopstart, sphere_vert_total(), MPoly::totloop, UNUSED, and MLoop::v.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 223 of file node_geo_mesh_primitive_uv_sphere.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_CORNER, GeometryComponent::attribute_try_get_for_output(), CD_PROP_FLOAT2, Editable, blender::bke::WriteAttribute::get_span_for_write_only(), mesh, and MeshComponent::replace().
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 65 of file node_geo_mesh_primitive_uv_sphere.cc.
References copy_v3_v3(), KDL::cos(), cosf, delta_phi(), M_PI, normal_float_to_short_v3(), KDL::sin(), UNUSED, verts, x, y, and z.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 189 of file node_geo_mesh_primitive_cone.cc.
References angle(), OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_CORNER, GeometryComponent::attribute_try_get_for_output(), BLI_assert, bottom, CD_PROP_FLOAT2, KDL::cos(), Editable, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN, blender::bke::WriteAttribute::get_span_for_write_only(), M_PI, mesh, MeshComponent::replace(), and KDL::sin().
Referenced by create_cylinder_or_cone_mesh(), and create_grid_mesh().
|
static |
Definition at line 42 of file node_geo_mesh_primitive_grid.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_CORNER, GeometryComponent::attribute_try_get_for_output(), CD_PROP_FLOAT2, Editable, blender::bke::WriteAttribute::get_span_for_write_only(), blender::Span< T >::index_range(), mesh, MeshComponent::replace(), verts, blender::float3::x, and blender::float3::y.
|
static |
Definition at line 85 of file node_geo_mesh_primitive_circle.cc.
References BLI_assert_unreachable, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_circle_mesh().
|
static |
Definition at line 72 of file node_geo_mesh_primitive_circle.cc.
References BLI_assert_unreachable, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_circle_mesh().
|
static |
Definition at line 99 of file node_geo_mesh_primitive_circle.cc.
References BLI_assert_unreachable, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_circle_mesh().
|
static |
Definition at line 59 of file node_geo_mesh_primitive_circle.cc.
References BLI_assert_unreachable, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_circle_mesh().
|
static |
Definition at line 137 of file node_geo_attribute_clamp.cc.
References OutputAttributePtr::apply_span_and_save(), BLI_assert, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, component(), NodeAttributeClamp::data_type, Error, get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), max, min, NODE_CLAMP_RANGE, NodeAttributeClamp::operation, params, swap(), and TIP_.
|
static |
Definition at line 115 of file node_geo_attribute_clamp.cc.
References blender::MutableSpan< T >::index_range(), max, and min.
Referenced by geo_node_attribute_clamp_exec().
|
inline |
Definition at line 104 of file node_geo_attribute_clamp.cc.
References blender::Color4f::a, blender::Color4f::b, blender::Color4f::g, max, min, and blender::Color4f::r.
|
inline |
Definition at line 85 of file node_geo_attribute_clamp.cc.
|
inline |
Definition at line 95 of file node_geo_attribute_clamp.cc.
References max, min, blender::float3::x, blender::float3::y, and blender::float3::z.
|
inline |
Definition at line 90 of file node_geo_attribute_clamp.cc.
|
static |
Definition at line 155 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
Definition at line 159 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
Definition at line 167 of file type_conversions.cc.
References Freestyle::a.
Definition at line 171 of file type_conversions.cc.
References Freestyle::a.
Definition at line 163 of file type_conversions.cc.
References Freestyle::a, and rgb_to_grayscale().
|
static |
Definition at line 89 of file node_geo_attribute_combine_xyz.cc.
References OutputAttributePtr::apply_span_and_save(), CD_PROP_FLOAT3, component(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), params, result, x, y, and z.
Referenced by geo_node_attribute_combine_xyz_exec().
|
static |
Definition at line 87 of file node_geo_bounding_box.cc.
References compute_min_max_from_position_and_transform(), compute_min_max_from_volume_and_transforms(), blender::bke::geometry_set_gather_instances(), GeometrySet::get_component_for_read(), and GeometrySet::has().
Referenced by geo_node_bounding_box_exec().
|
static |
Definition at line 37 of file node_geo_bounding_box.cc.
References ATTR_DOMAIN_POINT, BLI_assert, component(), minmax_v3v3_v3(), and transform().
Referenced by compute_geometry_set_instances_boundbox().
|
static |
Definition at line 57 of file node_geo_bounding_box.cc.
References BKE_volume_grid_get_for_read(), BKE_volume_num_grids(), DO_MAX, DO_MIN, VolumeComponent::get_for_read(), transform(), and UNUSED_VARS.
Referenced by compute_geometry_set_instances_boundbox().
|
static |
Definition at line 424 of file node_geo_point_distribute.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_POINT, CD_PROP_FLOAT3, CD_PROP_INT32, MVert::co, component(), GeometrySet::get_component_for_read(), get_mesh_looptris(), blender::bke::WriteAttribute::get_span_for_write_only(), blender::float3::hash(), blender::Span< T >::index_range(), mat4_to_rot(), mesh, Mesh::mloop, mul_m3_v3(), Mesh::mvert, normal_to_euler_rotation(), normal_tri_v3(), normals, blender::Span< T >::size(), blender::MutableSpan< T >::slice(), transform(), MLoopTri::tri, and MLoop::v.
Referenced by add_remaining_point_attributes().
|
static |
Definition at line 69 of file node_geo_attribute_convert.cc.
References component(), and blender::bke::custom_data_type_to_cpp_type().
Referenced by attribute_convert_calc().
|
static |
Definition at line 55 of file node_geo_point_separate.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_POINT, GeometryComponent::attribute_names(), GeometryComponent::attribute_try_get_for_output(), GeometryComponent::attribute_try_get_for_read(), blender::attribute_math::convert_to_static_type(), copy_data_based_on_mask(), blender::bke::WriteAttribute::get_span_for_write_only(), invert(), and T.
Referenced by separate_points_from_component().
|
static |
Definition at line 41 of file node_geo_point_separate.cc.
References data, and invert().
Referenced by copy_attributes_based_on_mask().
|
static |
Definition at line 118 of file node_geo_mesh_primitive_cone.cc.
References GEO_NODE_MESH_CIRCLE_FILL_NGON, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_cylinder_or_cone_mesh().
|
static |
Definition at line 113 of file node_geo_mesh_primitive_circle.cc.
References angle(), BKE_mesh_new_nomain(), circle_corner_total(), circle_edge_total(), circle_face_total(), circle_vert_total(), copy_v3_v3(), copy_v3_v3_short(), KDL::cos(), MLoop::e, MEdge::flag, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_NONE, GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN, MPoly::loopstart, M_PI, ME_EDGEDRAW, ME_EDGERENDER, ME_LOOSEEDGE, Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, KDL::sin(), Mesh::totedge, Mesh::totloop, MPoly::totloop, Mesh::totpoly, Mesh::totvert, MLoop::v, MEdge::v1, MEdge::v2, and verts.
Referenced by geo_node_mesh_primitive_circle_exec().
|
static |
Definition at line 85 of file node_geo_point_separate.cc.
References BKE_mesh_new_nomain(), BKE_pointcloud_new_nomain(), BLI_assert, component(), GEO_COMPONENT_TYPE_MESH, and GEO_COMPONENT_TYPE_POINT_CLOUD.
Referenced by separate_points_from_component().
Definition at line 38 of file node_geo_mesh_primitive_cube.cc.
References BKE_id_new_nomain(), bm, BM_mesh_bm_to_me(), BM_mesh_create(), BM_mesh_free(), BMO_FLAG_DEFAULTS, BMO_op_callf(), ID_ME, blender::float4x4::identity(), mesh, params, size(), and transform().
Referenced by geo_node_bounding_box_exec(), and geo_node_mesh_primitive_cube_exec().
| Mesh * blender::nodes::create_cylinder_or_cone_mesh | ( | const float | radius_top, |
| const float | radius_bottom, | ||
| const float | depth, | ||
| const int | verts_num, | ||
| const GeometryNodeMeshCircleFillType | fill_type | ||
| ) |
Definition at line 277 of file node_geo_mesh_primitive_cone.cc.
References angle(), BKE_mesh_calc_normals(), BKE_mesh_is_valid(), BKE_mesh_new_nomain(), BLI_assert, calculate_uvs(), MVert::co, copy_v3_v3(), copy_v3_v3_short(), corner_total(), KDL::cos(), MLoop::e, edge_total(), face_total(), MEdge::flag, GEO_NODE_MESH_CIRCLE_FILL_NGON, GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN, height, MPoly::loopstart, M_PI, ME_EDGEDRAW, ME_EDGERENDER, ME_LOOSEEDGE, Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, MVert::no, KDL::sin(), Mesh::totedge, Mesh::totloop, MPoly::totloop, Mesh::totpoly, Mesh::totvert, MLoop::v, MEdge::v1, MEdge::v2, vert_total(), verts, x, and y.
Referenced by geo_node_mesh_primitive_cone_exec(), and geo_node_mesh_primitive_cylinder_exec().
|
static |
Definition at line 324 of file node_tree_multi_function.cc.
References blender::fn::MFNetwork::add_input(), blender::fn::MFNetwork::add_link(), blender::fn::MFNetwork::add_output(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::ResourceScope::construct(), blender::nodes::DNode::context(), blender::fn::MFSocket::data_type(), blender::nodes::NodeRef::inputs(), blender::nodes::MFNetworkTreeMap::lookup(), blender::nodes::NodeRef::outputs(), socket_mf_type_get(), and blender::fn::MFDataType::to_string().
Referenced by get_multi_function_per_node().
|
static |
Definition at line 62 of file node_geo_mesh_primitive_grid.cc.
References BKE_mesh_new_nomain(), BLI_assert, calculate_uvs(), copy_v3_v3_short(), MLoop::e, MEdge::flag, MPoly::loopstart, ME_EDGEDRAW, ME_EDGERENDER, Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, Mesh::totedge, Mesh::totloop, MPoly::totloop, Mesh::totpoly, Mesh::totvert, MLoop::v, MEdge::v1, MEdge::v2, verts, x, and y.
Referenced by geo_node_mesh_primitive_grid_exec().
|
static |
Definition at line 39 of file node_geo_mesh_primitive_ico_sphere.cc.
References abs(), BKE_id_new_nomain(), bm, BM_mesh_bm_to_me(), BM_mesh_create(), BM_mesh_free(), BMO_FLAG_DEFAULTS, BMO_op_callf(), ID_ME, blender::float4x4::identity(), mesh, params, and transform().
Referenced by geo_node_mesh_primitive_ico_sphere_exec().
|
static |
Definition at line 176 of file type_conversions.cc.
Referenced by get_implicit_type_conversions().
|
static |
Definition at line 106 of file node_geo_mesh_primitive_line.cc.
References BKE_mesh_new_nomain(), copy_v3_v3(), copy_v3_v3_short(), count, fill_edge_data(), Mesh::medge, mesh, Mesh::mvert, normal, normal_float_to_short_v3(), blender::float3::normalized(), Mesh::totedge, Mesh::totvert, and verts.
Referenced by geo_node_mesh_primitive_line_exec().
|
static |
Definition at line 262 of file node_geo_mesh_primitive_uv_sphere.cc.
References BKE_mesh_is_valid(), BKE_mesh_new_nomain(), BLI_assert, calculate_sphere_edge_indices(), calculate_sphere_faces(), calculate_sphere_uvs(), calculate_sphere_vertex_data(), Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, sphere_corner_total(), sphere_edge_total(), sphere_face_total(), sphere_vert_total(), Mesh::totedge, Mesh::totloop, Mesh::totpoly, Mesh::totvert, and verts.
Referenced by geo_node_mesh_primitive_uv_sphere_exec().
|
static |
Definition at line 144 of file node_geo_join_geometry.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::attribute_data_type_highest_complexity(), blender::bke::attribute_domain_highest_priority(), and component().
|
static |
Definition at line 543 of file node_geo_point_distribute.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), ATTR_DOMAIN_CORNER, component(), eliminate_points_based_on_mask(), GeometrySet::get_component_for_read(), blender::StringRefBase::is_empty(), mesh, sample_mesh_surface(), seed, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), transform(), UNUSED, update_elimination_mask_based_on_density_factors(), and update_elimination_mask_for_close_points().
Referenced by geo_node_point_distribute_exec().
|
static |
Definition at line 506 of file node_geo_point_distribute.cc.
References ATTR_DOMAIN_CORNER, component(), GeometrySet::get_component_for_read(), blender::StringRefBase::is_empty(), mesh, sample_mesh_surface(), seed, and transform().
Referenced by geo_node_point_distribute_exec().
|
static |
Definition at line 151 of file node_geo_attribute_compare.cc.
References Freestyle::a, and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 137 of file node_geo_attribute_compare.cc.
References Freestyle::a, len_squared_v4v4(), pow2f(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 110 of file node_geo_attribute_compare.cc.
References Freestyle::a, compare_ff(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 123 of file node_geo_attribute_compare.cc.
References Freestyle::a, len_squared_v3v3(), pow2f(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 84 of file node_geo_attribute_compare.cc.
References Freestyle::a, BLI_assert, size(), try_dispatch_float_math_fl_fl_to_bool(), and UNUSED.
Referenced by attribute_compare_calc(), and attribute_math_calc().
|
static |
Definition at line 168 of file node_geo_attribute_math.cc.
References BLI_assert, blender::MutableSpan< T >::size(), try_dispatch_float_math_fl_fl_to_fl(), UNUSED, and UNUSED_VARS_NDEBUG.
|
static |
Definition at line 152 of file node_geo_attribute_math.cc.
References BLI_assert, blender::MutableSpan< T >::size(), try_dispatch_float_math_fl_fl_fl_to_fl(), UNUSED, and UNUSED_VARS_NDEBUG.
|
static |
Definition at line 183 of file node_geo_attribute_math.cc.
References BLI_assert, blender::MutableSpan< T >::size(), try_dispatch_float_math_fl_to_fl(), UNUSED, and UNUSED_VARS_NDEBUG.
|
static |
Definition at line 199 of file node_geo_attribute_vector_math.cc.
References Freestyle::a, BLI_assert, Freestyle::c, result, size(), try_dispatch_float_math_fl3_fl3_fl3_to_fl3(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 230 of file node_geo_attribute_vector_math.cc.
References Freestyle::a, BLI_assert, Freestyle::c, result, size(), try_dispatch_float_math_fl3_fl3_fl_to_fl3(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 261 of file node_geo_attribute_vector_math.cc.
References Freestyle::a, BLI_assert, result, size(), try_dispatch_float_math_fl3_fl3_to_fl(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 171 of file node_geo_attribute_vector_math.cc.
References Freestyle::a, BLI_assert, result, size(), try_dispatch_float_math_fl3_fl3_to_fl3(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 289 of file node_geo_attribute_vector_math.cc.
References Freestyle::a, BLI_assert, result, size(), try_dispatch_float_math_fl3_fl_to_fl3(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 342 of file node_geo_attribute_vector_math.cc.
References BLI_assert, result, size(), try_dispatch_float_math_fl3_to_fl(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 317 of file node_geo_attribute_vector_math.cc.
References BLI_assert, result, size(), try_dispatch_float_math_fl3_to_fl3(), UNUSED, and UNUSED_VARS_NDEBUG.
Referenced by attribute_vector_math_calc().
|
static |
Definition at line 109 of file node_geo_attribute_mix.cc.
References CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, do_mix_operation_color4f(), do_mix_operation_float(), and do_mix_operation_float3().
Referenced by attribute_mix_calc().
|
static |
Definition at line 93 of file node_geo_attribute_mix.cc.
References Freestyle::a, ramp_blend(), and size().
Referenced by do_mix_operation().
|
static |
Definition at line 60 of file node_geo_attribute_mix.cc.
References Freestyle::a, ramp_blend(), result, and size().
Referenced by do_mix_operation().
|
static |
Definition at line 77 of file node_geo_attribute_mix.cc.
References Freestyle::a, ramp_blend(), and size().
Referenced by do_mix_operation().
|
static |
Definition at line 205 of file node_geo_attribute_compare.cc.
References Freestyle::a, and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 191 of file node_geo_attribute_compare.cc.
References Freestyle::a, len_squared_v4v4(), pow2f(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 164 of file node_geo_attribute_compare.cc.
References Freestyle::a, compare_ff(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 177 of file node_geo_attribute_compare.cc.
References Freestyle::a, len_squared_v3v3(), pow2f(), and size().
Referenced by attribute_compare_calc().
|
static |
Definition at line 89 of file node_geo_mesh_primitive_cone.cc.
References GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_cylinder_or_cone_mesh().
|
static |
Definition at line 238 of file node_geo_point_distribute.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by distribute_points_poisson_disk().
|
static |
Definition at line 64 of file node_geo_attribute_color_ramp.cc.
References OutputAttributePtr::apply_span_and_save(), BKE_colorband_evaluate(), CD_PROP_COLOR, NodeAttributeColorRamp::color_ramp, component(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), params, and bNode::storage.
Referenced by geo_node_attribute_color_ramp_exec(), geo_node_attribute_sample_texture_exec(), geo_node_point_scale_exec(), and geo_node_point_translate_exec().
|
static |
Definition at line 71 of file node_geo_attribute_sample_texture.cc.
References OutputAttributePtr::apply_span_and_save(), BKE_texture_get_value(), CD_PROP_COLOR, component(), get_result_domain(), blender::bke::WriteAttribute::get_span(), node, params, TexResult::ta, TexResult::tb, TexResult::tg, and TexResult::tr.
|
static |
Definition at line 46 of file node_geo_point_scale.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_POINT, CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), GEO_NODE_ATTRIBUTE_INPUT_FLOAT, blender::bke::WriteAttribute::get_span(), blender::MutableSpan< T >::index_range(), NodeGeometryPointScale::input_type, node, and params.
|
static |
Definition at line 43 of file node_geo_point_translate.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_POINT, CD_PROP_FLOAT3, component(), data, blender::bke::WriteAttribute::get_span(), and params.
|
static |
Definition at line 63 of file node_geo_attribute_separate_xyz.cc.
References component(), and result.
Referenced by separate_attribute().
|
static |
Definition at line 156 of file node_geo_mesh_primitive_cone.cc.
References GEO_NODE_MESH_CIRCLE_FILL_NGON, and GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_cylinder_or_cone_mesh().
|
static |
Definition at line 82 of file node_geo_attribute_fill.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_AUTO, CD_PROP_BOOL, CD_PROP_COLOR, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, component(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), node, and params.
Referenced by geo_node_attribute_fill_exec().
|
static |
Definition at line 97 of file node_geo_mesh_primitive_line.cc.
References blender::MutableSpan< T >::index_range(), and ME_LOOSEEDGE.
Referenced by create_line_mesh().
|
static |
Definition at line 163 of file node_geo_join_geometry.cc.
References BLI_assert, component(), blender::fn::CPPType::copy_to_initialized_n(), blender::bke::custom_data_type_to_cpp_type(), and blender::fn::GSpan::data().
|
static |
Definition at line 132 of file node_geo_join_geometry.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), component(), and names.
|
static |
Definition at line 83 of file type_conversions.cc.
References Freestyle::a, and is_zero_v2().
Definition at line 87 of file type_conversions.cc.
References Freestyle::a.
Definition at line 75 of file type_conversions.cc.
References Freestyle::a.
Definition at line 71 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 79 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 92 of file type_conversions.cc.
References Freestyle::a, and is_zero_v3().
Definition at line 108 of file type_conversions.cc.
References Freestyle::a.
Definition at line 96 of file type_conversions.cc.
References Freestyle::a.
Definition at line 104 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 100 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 62 of file type_conversions.cc.
References Freestyle::a.
Definition at line 66 of file type_conversions.cc.
References Freestyle::a.
Definition at line 50 of file type_conversions.cc.
References Freestyle::a.
Definition at line 54 of file type_conversions.cc.
References Freestyle::a.
Definition at line 58 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 111 of file node_tree_multi_function.cc.
References callback, blender::nodes::DNode::context(), blender::nodes::DerivedNodeTree::foreach_node(), if(), blender::nodes::NodeRef::is_group_node(), blender::nodes::DTreeContext::is_root(), and blender::nodes::CommonMFNetworkBuilderData::tree.
Referenced by insert_links_and_unlinked_inputs(), and insert_nodes().
|
static |
Definition at line 173 of file node_geo_align_rotation_to_vector.cc.
References align_rotations_on_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_align_rotation_to_vector().
|
static |
Definition at line 190 of file node_geo_align_rotation_to_vector.cc.
References NodeGeometryAlignRotationToVector::axis, GEO_NODE_ALIGN_ROTATION_TO_VECTOR_AXIS_X, GEO_NODE_ATTRIBUTE_INPUT_FLOAT, GEO_NODE_ATTRIBUTE_INPUT_VECTOR, NodeGeometryAlignRotationToVector::input_type_factor, NodeGeometryAlignRotationToVector::input_type_vector, MEM_callocN, and node.
Referenced by register_node_type_geo_align_rotation_to_vector().
|
static |
Definition at line 202 of file node_geo_align_rotation_to_vector.cc.
References NodeGeometryAlignRotationToVector::input_type_factor, NodeGeometryAlignRotationToVector::input_type_vector, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_align_rotation_to_vector().
|
static |
Definition at line 247 of file node_geo_attribute_clamp.cc.
References clamp_attribute(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_clamp().
|
static |
Definition at line 97 of file node_geo_attribute_color_ramp.cc.
References execute_on_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_color_ramp().
|
static |
Definition at line 113 of file node_geo_attribute_color_ramp.cc.
References BKE_colorband_init(), NodeAttributeColorRamp::color_ramp, MEM_callocN, and node.
Referenced by register_node_type_geo_attribute_color_ramp().
|
static |
Definition at line 120 of file node_geo_attribute_combine_xyz.cc.
References combine_attributes(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_combine_xyz().
|
static |
Definition at line 53 of file node_geo_attribute_combine_xyz.cc.
References data, GEO_NODE_ATTRIBUTE_INPUT_FLOAT, MEM_callocN, and node.
Referenced by register_node_type_geo_attribute_combine_xyz().
|
static |
Definition at line 64 of file node_geo_attribute_combine_xyz.cc.
References NodeAttributeCombineXYZ::input_type_x, NodeAttributeCombineXYZ::input_type_y, NodeAttributeCombineXYZ::input_type_z, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_combine_xyz().
|
static |
Definition at line 320 of file node_geo_attribute_compare.cc.
References attribute_compare_calc(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_compare().
|
static |
Definition at line 72 of file node_geo_attribute_compare.cc.
References BLI_findlink(), NodeAttributeCompare::input_type_a, NodeAttributeCompare::input_type_b, node, nodeSetSocketAvailability(), operation_tests_equality(), and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_compare().
|
static |
Definition at line 136 of file node_geo_attribute_convert.cc.
References attribute_convert_calc(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_convert().
|
static |
Definition at line 139 of file node_geo_attribute_fill.cc.
References fill_attribute(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_fill().
|
static |
Definition at line 386 of file node_geo_attribute_map_range.cc.
References GeometrySet::get_component_for_write(), GeometrySet::has(), map_range_attribute(), and params.
Referenced by register_node_type_geo_attribute_map_range().
|
static |
Definition at line 279 of file node_geo_attribute_math.cc.
References attribute_math_calc(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_math().
|
static |
Definition at line 133 of file node_geo_attribute_math.cc.
References NodeAttributeMath::input_type_a, NodeAttributeMath::input_type_b, NodeAttributeMath::input_type_c, node, NodeAttributeMath::operation, operation_use_input_b(), operation_use_input_c(), and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_math().
|
static |
Definition at line 183 of file node_geo_attribute_mix.cc.
References attribute_mix_calc(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_mix().
|
static |
Definition at line 199 of file node_geo_attribute_mix.cc.
References data, GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE, GEO_NODE_ATTRIBUTE_INPUT_FLOAT, MA_RAMP_BLEND, MEM_callocN, and node.
Referenced by register_node_type_geo_attribute_mix().
|
static |
Definition at line 210 of file node_geo_attribute_mix.cc.
References NodeAttributeMix::input_type_a, NodeAttributeMix::input_type_b, NodeAttributeMix::input_type_factor, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_mix().
|
static |
Definition at line 241 of file node_geo_attribute_proximity.cc.
References attribute_calc_proximity(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_proximity().
|
static |
Definition at line 58 of file node_geo_attribute_remove.cc.
References blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), params, and remove_attribute().
Referenced by register_node_type_geo_attribute_remove().
|
static |
Definition at line 109 of file node_geo_attribute_sample_texture.cc.
References execute_on_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_sample_texture().
|
static |
Definition at line 144 of file node_geo_attribute_separate_xyz.cc.
References blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), params, and separate_attribute().
Referenced by register_node_type_geo_attribute_separate_xyz().
|
static |
Definition at line 48 of file node_geo_attribute_separate_xyz.cc.
References data, GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE, MEM_callocN, and node.
Referenced by register_node_type_geo_attribute_separate_xyz().
|
static |
Definition at line 56 of file node_geo_attribute_separate_xyz.cc.
References NodeAttributeSeparateXYZ::input_type, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_separate_xyz().
|
static |
Definition at line 483 of file node_geo_attribute_vector_math.cc.
References attribute_vector_math_calc(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_attribute_vector_math().
|
static |
Definition at line 152 of file node_geo_attribute_vector_math.cc.
References NodeAttributeVectorMath::input_type_a, NodeAttributeVectorMath::input_type_b, NodeAttributeVectorMath::input_type_c, node, NodeAttributeVectorMath::operation, operation_use_input_b(), operation_use_input_c(), and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_attribute_vector_math().
|
static |
Definition at line 82 of file node_geo_boolean.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_n_times(), GeometrySet::create_with_mesh(), blender::meshintersect::direct_mesh_boolean(), Error, GEO_NODE_BOOLEAN_DIFFERENCE, blender::bke::geometry_set_gather_instances(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_mesh_for_read(), blender::float4x4::identity(), params, result, Mesh::size, and TIP_.
Referenced by register_node_type_geo_boolean().
|
static |
Definition at line 113 of file node_geo_bounding_box.cc.
References center, GeometrySet::compute_boundbox_without_instances(), compute_geometry_set_instances_boundbox(), create_cube_mesh(), GeometrySet::create_with_mesh(), GeometrySet::has_instances(), max, mesh, min, params, and transform_mesh().
Referenced by register_node_type_geo_bounding_box().
|
static |
Definition at line 43 of file node_geo_collection_info.cc.
References InstancesComponent::add_instance(), InstancedData::collection, copy_v3_v3(), InstancedData::data, GEO_NODE_TRANSFORM_SPACE_RELATIVE, GeometrySet::get_component_for_write(), Object::imat, INSTANCE_DATA_TYPE_COLLECTION, mul_m4_m4_pre(), params, bNode::storage, NodeGeometryCollectionInfo::transform_space, InstancedData::type, and unit_m4().
Referenced by register_node_type_geo_collection_info().
|
static |
Definition at line 81 of file node_geo_collection_info.cc.
References data, GEO_NODE_TRANSFORM_SPACE_ORIGINAL, MEM_callocN, and node.
Referenced by register_node_type_geo_collection_info().
|
static |
Definition at line 47 of file node_geo_edge_split.cc.
References doEdgeSplit(), EdgeSplitModifierData::flags, blender::bke::geometry_set_realize_instances(), GeometrySet::get_mesh_for_read(), GeometrySet::has_mesh(), MOD_EDGESPLIT_FROMANGLE, MOD_EDGESPLIT_FROMFLAG, params, GeometrySet::replace_mesh(), and EdgeSplitModifierData::split_angle.
Referenced by register_node_type_geo_edge_split().
|
static |
Definition at line 28 of file node_geo_is_viewport.cc.
References DAG_EVAL_VIEWPORT, DEG_get_mode(), depsgraph, and params.
Referenced by register_node_type_geo_is_viewport().
|
static |
Definition at line 287 of file node_geo_join_geometry.cc.
References params.
Referenced by register_node_type_geo_join_geometry().
|
static |
Definition at line 201 of file node_geo_mesh_primitive_circle.cc.
References BKE_mesh_is_valid(), BLI_assert, create_circle_mesh(), GeometrySet::create_with_mesh(), NodeGeometryMeshCircle::fill_type, mesh, node, and params.
Referenced by register_node_type_geo_mesh_primitive_circle().
|
static |
Definition at line 544 of file node_geo_mesh_primitive_cone.cc.
References BKE_mesh_translate(), create_cylinder_or_cone_mesh(), GeometrySet::create_with_mesh(), NodeGeometryMeshCone::fill_type, mesh, node, and params.
Referenced by register_node_type_geo_mesh_primitive_cone().
|
static |
Definition at line 62 of file node_geo_mesh_primitive_cube.cc.
References create_cube_mesh(), GeometrySet::create_with_mesh(), mesh, params, and size().
Referenced by register_node_type_geo_mesh_primitive_cube().
|
static |
Definition at line 60 of file node_geo_mesh_primitive_cylinder.cc.
References create_cylinder_or_cone_mesh(), GeometrySet::create_with_mesh(), NodeGeometryMeshCylinder::fill_type, mesh, node, and params.
Referenced by register_node_type_geo_mesh_primitive_cylinder().
|
static |
Definition at line 157 of file node_geo_mesh_primitive_grid.cc.
References BKE_mesh_is_valid(), BLI_assert, create_grid_mesh(), GeometrySet::create_with_mesh(), mesh, and params.
Referenced by register_node_type_geo_mesh_primitive_grid().
|
static |
Definition at line 64 of file node_geo_mesh_primitive_ico_sphere.cc.
References create_ico_sphere_mesh(), GeometrySet::create_with_mesh(), mesh, min, and params.
Referenced by register_node_type_geo_mesh_primitive_ico_sphere().
|
static |
Definition at line 131 of file node_geo_mesh_primitive_line.cc.
References count, NodeGeometryMeshLine::count_mode, create_line_mesh(), GeometrySet::create_with_mesh(), float(), GEO_NODE_MESH_LINE_COUNT_RESOLUTION, GEO_NODE_MESH_LINE_COUNT_TOTAL, GEO_NODE_MESH_LINE_MODE_END_POINTS, GEO_NODE_MESH_LINE_MODE_OFFSET, max, mesh, NodeGeometryMeshLine::mode, blender::float3::normalized(), and params.
Referenced by register_node_type_geo_mesh_primitive_line().
|
static |
Definition at line 287 of file node_geo_mesh_primitive_uv_sphere.cc.
References create_uv_sphere_mesh(), GeometrySet::create_with_mesh(), mesh, and params.
Referenced by register_node_type_geo_mesh_primitive_uv_sphere().
|
static |
Definition at line 43 of file node_geo_object_info.cc.
References InstancesComponent::add_instance(), GEO_NODE_TRANSFORM_SPACE_RELATIVE, GeometrySet::get_component_for_write(), Object::imat, mat4_decompose(), mul_m4_m4m4(), params, quat_to_eul(), bNode::storage, transform(), NodeGeometryObjectInfo::transform_space, and unit_m4().
Referenced by register_node_type_geo_object_info().
|
static |
Definition at line 94 of file node_geo_object_info.cc.
References data, GEO_NODE_TRANSFORM_SPACE_ORIGINAL, MEM_callocN, and node.
Referenced by register_node_type_geo_object_info().
|
static |
Definition at line 618 of file node_geo_point_distribute.cc.
References add_remaining_point_attributes(), BKE_pointcloud_new_nomain(), PointCloud::co, GeometrySet::create_with_pointcloud(), blender::Span< T >::data(), distribute_points_poisson_disk(), distribute_points_random(), Error, GEO_COMPONENT_TYPE_MESH, GEO_NODE_POINT_DISTRIBUTE_POISSON, GEO_NODE_POINT_DISTRIBUTE_RANDOM, blender::bke::geometry_set_gather_instances(), blender::bke::geometry_set_gather_instances_attribute_info(), GeometrySet::get_component_for_write(), GeometrySet::has_mesh(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), params, PointCloud::radius, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), seed, blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), TIP_, PointCloud::totpoint, and blender::uninitialized_fill_n().
Referenced by register_node_type_geo_point_distribute().
|
static |
Definition at line 193 of file node_geo_point_instance.cc.
References add_instances_from_geometry_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_read(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_point_instance().
|
static |
Definition at line 215 of file node_geo_point_instance.cc.
References data, GEO_NODE_POINT_INSTANCE_TYPE_OBJECT, GEO_NODE_POINT_INSTANCE_WHOLE_COLLECTION, MEM_callocN, and node.
Referenced by register_node_type_geo_point_instance().
|
static |
Definition at line 51 of file node_geo_point_instance.cc.
References BLI_findlink(), NodeGeometryPointInstance::flag, GEO_NODE_POINT_INSTANCE_TYPE_COLLECTION, GEO_NODE_POINT_INSTANCE_TYPE_OBJECT, GEO_NODE_POINT_INSTANCE_WHOLE_COLLECTION, NodeGeometryPointInstance::instance_type, bNodeSocket::next, node, nodeSetSocketAvailability(), and type.
Referenced by register_node_type_geo_point_instance().
|
static |
Definition at line 167 of file node_geo_point_rotate.cc.
References blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), params, and point_rotate_on_component().
Referenced by register_node_type_geo_point_rotate().
|
static |
Definition at line 183 of file node_geo_point_rotate.cc.
References GEO_NODE_ATTRIBUTE_INPUT_FLOAT, GEO_NODE_ATTRIBUTE_INPUT_VECTOR, GEO_NODE_POINT_ROTATE_SPACE_OBJECT, GEO_NODE_POINT_ROTATE_TYPE_EULER, NodeGeometryRotatePoints::input_type_angle, NodeGeometryRotatePoints::input_type_axis, NodeGeometryRotatePoints::input_type_rotation, MEM_callocN, node, NodeGeometryRotatePoints::space, and NodeGeometryRotatePoints::type.
Referenced by register_node_type_geo_point_rotate().
|
static |
Definition at line 197 of file node_geo_point_rotate.cc.
References GEO_NODE_POINT_ROTATE_TYPE_AXIS_ANGLE, GEO_NODE_POINT_ROTATE_TYPE_EULER, NodeGeometryRotatePoints::input_type_angle, NodeGeometryRotatePoints::input_type_axis, NodeGeometryRotatePoints::input_type_rotation, node, NodeGeometryRotatePoints::type, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_point_rotate().
|
static |
Definition at line 89 of file node_geo_point_scale.cc.
References execute_on_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_point_scale().
|
static |
Definition at line 105 of file node_geo_point_scale.cc.
References data, GEO_NODE_ATTRIBUTE_INPUT_VECTOR, MEM_callocN, and node.
Referenced by register_node_type_geo_point_scale().
|
static |
Definition at line 114 of file node_geo_point_scale.cc.
References NodeGeometryPointScale::input_type, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_point_scale().
|
static |
Definition at line 136 of file node_geo_point_separate.cc.
References blender::bke::geometry_set_realize_instances(), params, and separate_geometry_set().
Referenced by register_node_type_geo_point_separate().
|
static |
Definition at line 65 of file node_geo_point_translate.cc.
References execute_on_component(), blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), and params.
Referenced by register_node_type_geo_point_translate().
|
static |
Definition at line 81 of file node_geo_point_translate.cc.
References data, GEO_NODE_ATTRIBUTE_INPUT_VECTOR, MEM_callocN, and node.
Referenced by register_node_type_geo_point_translate().
|
static |
Definition at line 90 of file node_geo_point_translate.cc.
References NodeGeometryPointTranslate::input_type, node, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_point_translate().
|
static |
Definition at line 213 of file node_geo_points_to_volume.cc.
References blender::bke::geometry_set_realize_instances(), and params.
Referenced by register_node_type_geo_points_to_volume().
|
static |
Definition at line 228 of file node_geo_points_to_volume.cc.
References data, bNodeSocket::default_value, GEO_NODE_ATTRIBUTE_INPUT_FLOAT, GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_AMOUNT, MEM_callocN, node, nodeFindSocket(), SOCK_IN, STRNCPY, and bNodeSocketValueString::value.
Referenced by register_node_type_geo_points_to_volume().
|
static |
Definition at line 242 of file node_geo_points_to_volume.cc.
References data, GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_AMOUNT, GEO_NODE_POINTS_TO_VOLUME_RESOLUTION_MODE_SIZE, node, nodeFindSocket(), nodeSetSocketAvailability(), SOCK_IN, and update_attribute_input_socket_availabilities().
Referenced by register_node_type_geo_points_to_volume().
|
static |
Definition at line 275 of file node_geo_attribute_randomize.cc.
References blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::has(), params, randomize_attribute_on_component(), and seed.
Referenced by register_node_type_geo_attribute_randomize().
|
static |
Definition at line 41 of file node_geo_subdivide.cc.
References BKE_mesh_calc_normals(), BKE_subdiv_free(), BKE_subdiv_fvar_interpolation_from_uv_smooth(), BKE_subdiv_to_mesh(), BKE_subdiv_update_from_mesh(), BKE_subdiv_vtx_boundary_interpolation_from_subsurf(), clamp_i(), Error, SubdivSettings::fvar_linear_interpolation, blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::get_mesh_for_read(), GeometrySet::has_mesh(), SubdivSettings::is_adaptive, SubdivSettings::is_simple, SubdivSettings::level, params, MeshComponent::replace_mesh_but_keep_vertex_group_names(), SubdivToMeshSettings::resolution, TIP_, SubdivSettings::use_creases, SubdivToMeshSettings::use_optimal_display, and SubdivSettings::vtx_boundary_interpolation.
Referenced by register_node_type_geo_subdivide().
|
static |
Definition at line 41 of file node_geo_subdivision_surface.cc.
References BKE_mesh_calc_normals(), BKE_subdiv_free(), BKE_subdiv_fvar_interpolation_from_uv_smooth(), BKE_subdiv_to_mesh(), BKE_subdiv_update_from_mesh(), BKE_subdiv_vtx_boundary_interpolation_from_subsurf(), clamp_i(), Error, SubdivSettings::fvar_linear_interpolation, blender::bke::geometry_set_realize_instances(), GeometrySet::get_component_for_write(), GeometrySet::get_mesh_for_read(), GeometrySet::has_mesh(), SubdivSettings::is_adaptive, SubdivSettings::is_simple, SubdivSettings::level, params, MeshComponent::replace_mesh_but_keep_vertex_group_names(), SubdivToMeshSettings::resolution, TIP_, SubdivSettings::use_creases, SubdivToMeshSettings::use_optimal_display, and SubdivSettings::vtx_boundary_interpolation.
Referenced by register_node_type_geo_subdivision_surface().
|
static |
Definition at line 155 of file node_geo_transform.cc.
References GeometrySet::get_component_for_write(), GeometrySet::get_mesh_for_write(), GeometrySet::get_pointcloud_for_write(), GeometrySet::get_volume_for_write(), GeometrySet::has_instances(), GeometrySet::has_mesh(), GeometrySet::has_pointcloud(), GeometrySet::has_volume(), mesh, params, transform_instances(), transform_mesh(), transform_pointcloud(), and transform_volume().
Referenced by register_node_type_geo_transform().
|
static |
Definition at line 54 of file node_geo_triangulate.cc.
References blender::bke::geometry_set_realize_instances(), GeometrySet::get_mesh_for_write(), max, params, GeometrySet::replace_mesh(), and triangulate_mesh().
Referenced by register_node_type_geo_triangulate().
|
static |
Definition at line 143 of file node_geo_volume_to_mesh.cc.
References params.
Referenced by register_node_type_geo_volume_to_mesh().
|
static |
Definition at line 61 of file node_geo_volume_to_mesh.cc.
References data, bNodeSocket::default_value, MEM_callocN, node, nodeFindSocket(), SOCK_IN, STRNCPY, bNodeSocketValueString::value, and VOLUME_TO_MESH_RESOLUTION_MODE_GRID.
Referenced by register_node_type_geo_volume_to_mesh().
|
static |
Definition at line 74 of file node_geo_volume_to_mesh.cc.
References data, node, nodeFindSocket(), nodeSetSocketAvailability(), SOCK_IN, VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_AMOUNT, and VOLUME_TO_MESH_RESOLUTION_MODE_VOXEL_SIZE.
Referenced by register_node_type_geo_volume_to_mesh().
|
static |
Definition at line 218 of file node_geo_attribute_compare.cc.
References blender::bke::attribute_data_type_highest_complexity(), CD_PROP_FLOAT, component(), operation_tests_equality(), and params.
Referenced by attribute_compare_calc().
|
static |
Definition at line 276 of file derived_node_tree.cc.
References context, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), blender::dot::Graph::new_cluster(), and blender::dot::Cluster::set_parent_cluster().
Referenced by blender::nodes::DerivedNodeTree::to_dot().
| const FloatMathOperationInfo * blender::nodes::get_float3_math_operation_info | ( | const int | operation | ) |
Definition at line 149 of file math_functions.cc.
References NODE_VECTOR_MATH_ABSOLUTE, NODE_VECTOR_MATH_ADD, NODE_VECTOR_MATH_CEIL, NODE_VECTOR_MATH_COSINE, NODE_VECTOR_MATH_CROSS_PRODUCT, NODE_VECTOR_MATH_DISTANCE, NODE_VECTOR_MATH_DIVIDE, NODE_VECTOR_MATH_DOT_PRODUCT, NODE_VECTOR_MATH_FACEFORWARD, NODE_VECTOR_MATH_FLOOR, NODE_VECTOR_MATH_FRACTION, NODE_VECTOR_MATH_LENGTH, NODE_VECTOR_MATH_MAXIMUM, NODE_VECTOR_MATH_MINIMUM, NODE_VECTOR_MATH_MODULO, NODE_VECTOR_MATH_MULTIPLY, NODE_VECTOR_MATH_NORMALIZE, NODE_VECTOR_MATH_PROJECT, NODE_VECTOR_MATH_REFLECT, NODE_VECTOR_MATH_REFRACT, NODE_VECTOR_MATH_SCALE, NODE_VECTOR_MATH_SINE, NODE_VECTOR_MATH_SNAP, NODE_VECTOR_MATH_SUBTRACT, NODE_VECTOR_MATH_TANGENT, NODE_VECTOR_MATH_WRAP, and RETURN_OPERATION_INFO.
Referenced by try_dispatch_float_math_fl3_fl3_fl3_to_fl3(), try_dispatch_float_math_fl3_fl3_fl_to_fl3(), try_dispatch_float_math_fl3_fl3_to_fl(), try_dispatch_float_math_fl3_fl3_to_fl3(), try_dispatch_float_math_fl3_fl_to_fl3(), try_dispatch_float_math_fl3_to_fl(), and try_dispatch_float_math_fl3_to_fl3().
| const FloatMathOperationInfo * blender::nodes::get_float_compare_operation_info | ( | const int | operation | ) |
Definition at line 119 of file math_functions.cc.
References NODE_FLOAT_COMPARE_EQUAL, NODE_FLOAT_COMPARE_GREATER_EQUAL, NODE_FLOAT_COMPARE_GREATER_THAN, NODE_FLOAT_COMPARE_LESS_EQUAL, NODE_FLOAT_COMPARE_LESS_THAN, NODE_FLOAT_COMPARE_NOT_EQUAL, and RETURN_OPERATION_INFO.
Referenced by try_dispatch_float_math_fl_fl_to_bool().
| const FloatMathOperationInfo * blender::nodes::get_float_math_operation_info | ( | const int | operation | ) |
Definition at line 21 of file math_functions.cc.
References NODE_MATH_ABSOLUTE, NODE_MATH_ADD, NODE_MATH_ARCCOSINE, NODE_MATH_ARCSINE, NODE_MATH_ARCTAN2, NODE_MATH_ARCTANGENT, NODE_MATH_CEIL, NODE_MATH_COMPARE, NODE_MATH_COSH, NODE_MATH_COSINE, NODE_MATH_DEGREES, NODE_MATH_DIVIDE, NODE_MATH_EXPONENT, NODE_MATH_FLOOR, NODE_MATH_FRACTION, NODE_MATH_GREATER_THAN, NODE_MATH_INV_SQRT, NODE_MATH_LESS_THAN, NODE_MATH_LOGARITHM, NODE_MATH_MAXIMUM, NODE_MATH_MINIMUM, NODE_MATH_MODULO, NODE_MATH_MULTIPLY, NODE_MATH_MULTIPLY_ADD, NODE_MATH_PINGPONG, NODE_MATH_POWER, NODE_MATH_RADIANS, NODE_MATH_ROUND, NODE_MATH_SIGN, NODE_MATH_SINE, NODE_MATH_SINH, NODE_MATH_SMOOTH_MAX, NODE_MATH_SMOOTH_MIN, NODE_MATH_SNAP, NODE_MATH_SQRT, NODE_MATH_SUBTRACT, NODE_MATH_TANGENT, NODE_MATH_TANH, NODE_MATH_TRUNC, NODE_MATH_WRAP, and RETURN_OPERATION_INFO.
Referenced by gpu_shader_get_name(), try_dispatch_float_math_fl_fl_fl_to_fl(), try_dispatch_float_math_fl_fl_to_fl(), and try_dispatch_float_math_fl_to_fl().
| Array< uint32_t > blender::nodes::get_geometry_element_ids_as_uints | ( | const GeometryComponent & | component, |
| const AttributeDomain | domain | ||
| ) |
Definition at line 170 of file node_geo_attribute_randomize.cc.
References BLI_assert, component(), blender::RandomNumberGenerator::get_uint32(), blender::fn::CPPType::hash(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), and blender::Array< T, InlineBufferCapacity, Allocator >::size().
Referenced by get_instanced_data__collection(), and randomize_attribute_on_component().
| const DataTypeConversions & blender::nodes::get_implicit_type_conversions | ( | ) |
Definition at line 219 of file type_conversions.cc.
References create_implicit_conversions().
Referenced by GeometryComponent::attribute_get_constant_for_read_converted(), blender::bke::ConvertedReadAttribute::ConvertedReadAttribute(), and try_adapt_data_type().
|
static |
Definition at line 144 of file node_geo_point_instance.cc.
References component(), GEO_NODE_POINT_INSTANCE_TYPE_COLLECTION, GEO_NODE_POINT_INSTANCE_TYPE_OBJECT, get_instanced_data__collection(), get_instanced_data__object(), NodeGeometryPointInstance::instance_type, node, params, and type.
Referenced by add_instances_from_geometry_component().
|
static |
Definition at line 85 of file node_geo_point_instance.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), ATTR_DOMAIN_POINT, BLI_hash_int_2d(), BLI_listbase_is_empty(), Collection::children, InstancedData::collection, component(), InstancedData::data, NodeGeometryPointInstance::flag, GEO_NODE_POINT_INSTANCE_WHOLE_COLLECTION, get_geometry_element_ids_as_uints(), Collection::gobject, Info, INSTANCE_DATA_TYPE_COLLECTION, INSTANCE_DATA_TYPE_OBJECT, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LISTBASE_FOREACH, node, InstancedData::object, params, seed, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), TIP_, and InstancedData::type.
Referenced by get_instanced_data().
|
static |
Definition at line 68 of file node_geo_point_instance.cc.
References InstancedData::data, INSTANCE_DATA_TYPE_OBJECT, InstancedData::object, params, and InstancedData::type.
Referenced by get_instanced_data().
Definition at line 83 of file node_geo_point_distribute.cc.
References BKE_mesh_runtime_looptri_ensure(), BKE_mesh_runtime_looptri_len(), and mesh.
Referenced by compute_special_attributes(), interpolate_attribute_corner(), interpolate_attribute_face(), interpolate_attribute_point(), sample_mesh_surface(), and update_elimination_mask_based_on_density_factors().
| MultiFunctionByNode blender::nodes::get_multi_function_per_node | ( | const DerivedNodeTree & | tree, |
| ResourceScope & | scope | ||
| ) |
Returns a single multi-function for every node that supports it. This makes it easier to reuse the multi-function implementation of nodes in different contexts.
Definition at line 362 of file node_tree_multi_function.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::ResourceScope::construct(), create_function_for_node_that_expands_into_multiple(), bNodeType::expand_in_mf_network, get_node_expand_type(), tree, and blender::nodes::NodeRef::typeinfo().
Referenced by compute_geometry().
|
static |
Checks how the given node expanded in the multi-function network. If it is only a single function node, the corresponding function is returned as well.
Definition at line 276 of file node_tree_multi_function.cc.
References blender::fn::MFNode::as_function(), BLI_assert, blender::nodes::DNode::context(), blender::fn::MFFunctionNode::function(), blender::nodes::NodeRef::inputs(), blender::nodes::MFNetworkTreeMap::lookup(), blender::fn::MFSocket::node(), and blender::nodes::NodeRef::outputs().
Referenced by get_multi_function_per_node().
|
static |
Definition at line 197 of file node_geo_attribute_math.cc.
References ATTR_DOMAIN_POINT, component(), default_domain, operation_use_input_b(), operation_use_input_c(), and params.
|
static |
Definition at line 367 of file node_geo_attribute_vector_math.cc.
References ATTR_DOMAIN_POINT, component(), default_domain, operation_use_input_b(), operation_use_input_c(), and params.
|
static |
Definition at line 197 of file node_geo_attribute_randomize.cc.
References component(), node, and params.
|
static |
Definition at line 75 of file node_geo_attribute_combine_xyz.cc.
References ATTR_DOMAIN_POINT, component(), and params.
|
static |
Definition at line 235 of file node_geo_attribute_compare.cc.
References ATTR_DOMAIN_POINT, component(), and params.
|
static |
Definition at line 130 of file node_geo_attribute_mix.cc.
References ATTR_DOMAIN_POINT, component(), and params.
|
static |
|
static |
Definition at line 71 of file node_geo_attribute_fill.cc.
References ATTR_DOMAIN_POINT, and component().
|
static |
Definition at line 45 of file node_geo_attribute_color_ramp.cc.
References ATTR_DOMAIN_POINT, and component().
|
static |
Definition at line 51 of file node_geo_attribute_sample_texture.cc.
References ATTR_DOMAIN_POINT, and component().
|
static |
Definition at line 122 of file node_geo_attribute_clamp.cc.
References ATTR_DOMAIN_POINT, and component().
Referenced by attribute_compare_calc(), attribute_convert_calc(), attribute_math_calc(), attribute_mix_calc(), attribute_vector_math_calc(), clamp_attribute(), combine_attributes(), execute_on_component(), fill_attribute(), map_range_attribute(), randomize_attribute_on_component(), and separate_attribute().
|
static |
Definition at line 54 of file node_geo_attribute_convert.cc.
References ATTR_DOMAIN_POINT, and component().
|
static |
Definition at line 322 of file node_geo_attribute_map_range.cc.
References ATTR_DOMAIN_POINT, and component().
| const NodeTreeRef & blender::nodes::get_tree_ref_from_map | ( | NodeTreeRefMap & | node_tree_refs, |
| bNodeTree & | btree | ||
| ) |
Definition at line 401 of file node_tree_ref.cc.
|
static |
Definition at line 96 of file node_tree_multi_function.cc.
References blender::nodes::NodeRef::inputs(), blender::nodes::NodeRef::outputs(), and socket_is_mf_data_socket().
Referenced by insert_nodes().
|
static |
Definition at line 307 of file node_tree_ref.cc.
References blender::nodes::InputSocketRef::directly_linked_sockets(), node, and visited.
Referenced by blender::nodes::NodeTreeRef::has_link_cycles().
|
static |
Definition at line 146 of file node_tree_multi_function.cc.
References blender::fn::MFNetwork::add_function(), AT, blender::ResourceScope::construct(), blender::nodes::CommonMFNetworkBuilderData::network, node, blender::nodes::CommonMFNetworkBuilderData::scope, and type.
|
static |
Definition at line 55 of file node_tree_multi_function.cc.
References blender::nodes::MFNetworkTreeMap::add(), blender::fn::MFNetwork::add_dummy(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::nodes::DNode::context(), blender::fn::MFNode::inputs(), blender::nodes::NodeRef::inputs(), blender::nodes::NodeRef::name(), blender::nodes::CommonMFNetworkBuilderData::network, blender::nodes::CommonMFNetworkBuilderData::network_map, blender::fn::MFNode::outputs(), blender::nodes::NodeRef::outputs(), and socket_mf_type_get().
Referenced by insert_nodes().
|
static |
Definition at line 176 of file node_tree_multi_function.cc.
References BLI_assert, foreach_node_to_insert(), if(), blender::nodes::NodeRef::inputs(), blender::nodes::MFNetworkTreeMap::lookup(), blender::nodes::CommonMFNetworkBuilderData::network_map, and socket_is_mf_data_socket().
Referenced by insert_node_tree_into_mf_network().
| MFNetworkTreeMap blender::nodes::insert_node_tree_into_mf_network | ( | fn::MFNetwork & | network, |
| const DerivedNodeTree & | tree, | ||
| ResourceScope & | scope | ||
| ) |
Expands all function nodes contained in the given node tree within the given multi-function network.
Returns a mapping between the original node tree and the generated nodes/sockets for further processing.
Definition at line 248 of file node_tree_multi_function.cc.
References insert_links_and_unlinked_inputs(), insert_nodes(), and tree.
|
static |
Expands all function nodes in the multi-function network. Nodes that don't have an expand function, but do have data sockets, will get corresponding dummy nodes.
Definition at line 132 of file node_tree_multi_function.cc.
References bNodeType::expand_in_mf_network, foreach_node_to_insert(), has_data_sockets(), insert_dummy_node(), and blender::nodes::NodeRef::typeinfo().
Referenced by insert_node_tree_into_mf_network().
|
static |
Definition at line 163 of file node_tree_multi_function.cc.
References BLI_assert, socket_expand_in_mf_network(), socket_is_mf_data_socket(), and blender::nodes::SocketRef::typeinfo().
|
static |
Definition at line 113 of file type_conversions.cc.
References Freestyle::a.
Definition at line 129 of file type_conversions.cc.
References Freestyle::a.
Definition at line 117 of file type_conversions.cc.
References Freestyle::a.
Definition at line 121 of file type_conversions.cc.
References Freestyle::a.
Definition at line 125 of file type_conversions.cc.
References Freestyle::a.
|
static |
Definition at line 326 of file node_geo_point_distribute.cc.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_FACE, ATTR_DOMAIN_POINT, and mesh.
|
static |
Definition at line 281 of file node_geo_point_distribute.cc.
References BLI_assert, get_mesh_looptris(), blender::Span< T >::index_range(), mesh, blender::attribute_math::mix3(), blender::Span< T >::size(), T, Mesh::totloop, MLoopTri::tri, v1, and v2.
|
static |
Definition at line 309 of file node_geo_point_distribute.cc.
References BLI_assert, get_mesh_looptris(), blender::MutableSpan< T >::index_range(), mesh, MLoopTri::poly, blender::Span< T >::size(), and Mesh::totpoly.
|
static |
Definition at line 253 of file node_geo_point_distribute.cc.
References BLI_assert, get_mesh_looptris(), blender::Span< T >::index_range(), mesh, blender::attribute_math::mix3(), Mesh::mloop, blender::Span< T >::size(), T, Mesh::totvert, MLoopTri::tri, MLoop::v, v1, and v2.
|
static |
Definition at line 354 of file node_geo_point_distribute.cc.
References OutputAttributePtr::apply_span_and_save(), ATTR_DOMAIN_POINT, GeometryComponent::attribute_get_for_read(), GeometryComponent::attribute_try_get_for_read(), component(), blender::attribute_math::convert_to_static_type(), GeometrySet::get_component_for_read(), MeshComponent::get_for_read(), blender::bke::WriteAttribute::get_span_for_write_only(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), mesh, blender::Span< T >::size(), T, blender::fn::GSpan::typed(), blender::fn::GMutableSpan::typed(), and UNUSED.
Referenced by add_remaining_point_attributes().
|
static |
Definition at line 190 of file node_geo_join_geometry.cc.
Referenced by join_components().
|
static |
Definition at line 267 of file node_geo_join_geometry.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), component(), join_components(), result, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
static |
Definition at line 244 of file node_geo_join_geometry.cc.
References InstancesComponent::add_instance(), component(), result, and size().
|
static |
Definition at line 217 of file node_geo_join_geometry.cc.
References join_attributes(), join_mesh_topology_and_builtin_attributes(), MeshComponent::replace(), result, and to_base_components().
Referenced by join_component_type().
|
static |
Definition at line 230 of file node_geo_join_geometry.cc.
References ATTR_DOMAIN_POINT, BKE_pointcloud_new_nomain(), join_attributes(), PointCloudComponent::replace(), result, and to_base_components().
|
static |
Definition at line 258 of file node_geo_join_geometry.cc.
References result, and UNUSED_VARS.
|
static |
Definition at line 47 of file node_geo_join_geometry.cc.
References BKE_mesh_copy_settings(), BKE_mesh_new_nomain(), Mesh_Runtime::cd_dirty_edge, Mesh_Runtime::cd_dirty_loop, Mesh_Runtime::cd_dirty_poly, Mesh_Runtime::cd_dirty_vert, MLoop::e, MPoly::loopstart, Mesh::medge, mesh, Mesh::mloop, Mesh::mpoly, Mesh::mvert, Mesh::runtime, Mesh::totedge, Mesh::totloop, Mesh::totpoly, Mesh::totvert, MLoop::v, MEdge::v1, and MEdge::v2.
Referenced by join_components().
|
static |
Definition at line 105 of file node_geo_attribute_map_range.cc.
References safe_divide().
Referenced by map_range_float(), and map_range_float3().
|
static |
Definition at line 337 of file node_geo_attribute_map_range.cc.
References OutputAttributePtr::apply_span_and_save(), BLI_assert_unreachable, CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), NodeAttributeMapRange::data_type, Error, get_result_domain(), map_range_float(), map_range_float3(), node, params, and TIP_.
Referenced by geo_node_attribute_map_range_exec().
|
static |
Definition at line 195 of file node_geo_attribute_map_range.cc.
References clamp(), ELEM, blender::MutableSpan< T >::index_range(), NodeAttributeMapRange::interpolation_type, map_linear(), map_smootherstep(), map_smoothstep(), map_stepped(), node, NODE_MAP_RANGE_LINEAR, NODE_MAP_RANGE_SMOOTHERSTEP, NODE_MAP_RANGE_SMOOTHSTEP, NODE_MAP_RANGE_STEPPED, params, and steps.
Referenced by map_range_attribute().
|
static |
Definition at line 250 of file node_geo_attribute_map_range.cc.
References clamp_v3_v3v3(), ELEM, blender::MutableSpan< T >::index_range(), NodeAttributeMapRange::interpolation_type, map_linear(), map_smootherstep(), map_smoothstep(), map_stepped(), node, NODE_MAP_RANGE_LINEAR, NODE_MAP_RANGE_SMOOTHERSTEP, NODE_MAP_RANGE_SMOOTHSTEP, NODE_MAP_RANGE_STEPPED, params, steps, blender::float3::x, x, blender::float3::y, y, blender::float3::z, and z.
Referenced by map_range_attribute().
|
static |
Definition at line 183 of file node_geo_attribute_map_range.cc.
References clamp(), safe_divide(), and smootherstep_polynomial().
Referenced by map_range_float(), and map_range_float3().
|
static |
Definition at line 165 of file node_geo_attribute_map_range.cc.
References clamp(), safe_divide(), and smoothstep_polynomial().
Referenced by map_range_float(), and map_range_float3().
|
static |
Definition at line 129 of file node_geo_attribute_map_range.cc.
References floorf, safe_divide(), and steps.
Referenced by map_range_float(), and map_range_float3().
Use an arbitrary choice of axes for a usable rotation attribute directly out of this node.
Definition at line 74 of file node_geo_point_distribute.cc.
References normal, OB_NEGZ, OB_POSY, quat_to_eul(), and vec_to_quat().
Referenced by compute_special_attributes().
|
inline |
Definition at line 258 of file NOD_derived_node_tree.hh.
|
inline |
Definition at line 313 of file NOD_derived_node_tree.hh.
Definition at line 253 of file NOD_derived_node_tree.hh.
Definition at line 308 of file NOD_derived_node_tree.hh.
|
static |
Definition at line 62 of file node_geo_point_rotate.cc.
References axis_angle_to_mat3(), eul_to_mat3(), mat3_to_eul(), and mul_m3_m3m3().
Referenced by point_rotate_on_component().
|
static |
Definition at line 78 of file node_geo_point_rotate.cc.
References axis_angle_to_mat3(), eul_to_mat3(), mat3_to_eul(), and mul_m3_m3m3().
Referenced by point_rotate_on_component().
|
static |
Definition at line 94 of file node_geo_point_rotate.cc.
References eul_to_mat3(), mat3_to_eul(), and mul_m3_m3m3().
Referenced by point_rotate_on_component().
|
static |
Definition at line 109 of file node_geo_point_rotate.cc.
References eul_to_mat3(), mat3_to_eul(), and mul_m3_m3m3().
Referenced by point_rotate_on_component().
|
static |
Definition at line 124 of file node_geo_point_rotate.cc.
References ATTR_DOMAIN_POINT, CD_PROP_FLOAT3, component(), GEO_NODE_POINT_ROTATE_SPACE_OBJECT, GEO_NODE_POINT_ROTATE_TYPE_AXIS_ANGLE, node, params, point_rotate__axis_angle__object_space(), point_rotate__axis_angle__point_space(), point_rotate__euler__object_space(), point_rotate__euler__point_space(), blender::MutableSpan< T >::size(), NodeGeometryRotatePoints::space, and NodeGeometryRotatePoints::type.
Referenced by geo_node_point_rotate_exec().
|
static |
Definition at line 63 of file node_geo_attribute_proximity.cc.
References BLI_bvhtree_find_nearest(), BVHTreeNearest::co, copy_v3_fl(), BVHTreeNearest::dist_sq, BVHTreeNearest::index, blender::Span< T >::index_range(), len_squared_v3v3(), BVHTreeFromMesh::nearest_callback, BVHTreeFromPointCloud::nearest_callback, blender::parallel_for(), sqrtf, BVHTreeFromMesh::tree, and BVHTreeFromPointCloud::tree.
Referenced by attribute_calc_proximity().
|
inline |
Definition at line 86 of file node_geo_attribute_randomize.cc.
References BLI_hash_int_2d_to_float(), max, min, and seed.
|
inline |
Definition at line 105 of file node_geo_attribute_randomize.cc.
References BLI_hash_int_3d_to_float(), max, min, seed, x, y, and z.
|
inline |
Definition at line 95 of file node_geo_attribute_randomize.cc.
References max, min, round_fl_to_int(), and seed.
| T blender::nodes::random_value_in_range | ( | const uint32_t | id, |
| const uint32_t | seed, | ||
| const T | min, | ||
| const T | max | ||
| ) |
|
static |
Definition at line 118 of file node_geo_attribute_randomize.cc.
References BLI_assert, GEO_NODE_ATTRIBUTE_RANDOMIZE_ADD, GEO_NODE_ATTRIBUTE_RANDOMIZE_MULTIPLY, GEO_NODE_ATTRIBUTE_RANDOMIZE_REPLACE_CREATE, GEO_NODE_ATTRIBUTE_RANDOMIZE_SUBTRACT, blender::MutableSpan< T >::index_range(), max, min, seed, and T.
|
static |
Definition at line 157 of file node_geo_attribute_randomize.cc.
References BLI_assert, BLI_hash_int_2d_to_float(), GEO_NODE_ATTRIBUTE_RANDOMIZE_REPLACE_CREATE, blender::MutableSpan< T >::index_range(), seed, and UNUSED_VARS_NDEBUG.
Referenced by randomize_attribute_on_component().
|
static |
Definition at line 212 of file node_geo_attribute_randomize.cc.
References OutputAttributePtr::apply_span_and_save(), BLI_assert, CD_PROP_BOOL, CD_PROP_FLOAT, CD_PROP_FLOAT3, CD_PROP_INT32, component(), Error, GEO_NODE_ATTRIBUTE_RANDOMIZE_REPLACE_CREATE, get_geometry_element_ids_as_uints(), get_result_domain(), blender::bke::WriteAttribute::get_span(), blender::bke::WriteAttribute::get_span_for_write_only(), max, min, params, randomize_attribute_bool(), seed, TIP_, and blender::fn::GMutableSpan::typed().
Referenced by geo_node_random_attribute_exec().
|
static |
Definition at line 41 of file node_geo_attribute_remove.cc.
References component(), Error, params, and TIP_.
Referenced by geo_node_attribute_remove_exec().
|
static |
Definition at line 91 of file node_geo_point_distribute.cc.
References add_point(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::compositor::area(), area_tri_v3(), BLI_hash_int(), MVert::co, fractf(), blender::RandomNumberGenerator::get_barycentric_coordinates(), blender::RandomNumberGenerator::get_float(), get_mesh_looptris(), blender::Span< T >::index_range(), interp_v3_v3v3v3(), max, mesh, Mesh::mloop, Mesh::mvert, seed, transform(), MLoopTri::tri, and MLoop::v.
Referenced by distribute_points_poisson_disk(), and distribute_points_random().
|
static |
Definition at line 100 of file node_geo_attribute_separate_xyz.cc.
References OutputAttributePtr::apply_span_and_save(), CD_PROP_FLOAT, CD_PROP_FLOAT3, component(), extract_input(), get_result_domain(), blender::bke::WriteAttribute::get_span_for_write_only(), and params.
Referenced by geo_node_attribute_separate_xyz_exec().
|
static |
Definition at line 124 of file node_geo_point_separate.cc.
References component(), GeometrySet::get_component_for_write(), GeometrySet::get_components_for_read(), invert(), and separate_points_from_component().
Referenced by geo_node_point_separate_exec().
|
static |
Definition at line 100 of file node_geo_point_separate.cc.
References ATTR_DOMAIN_POINT, GeometryComponent::attribute_domain_size(), GeometryComponent::attribute_domain_supported(), GeometryComponent::attribute_get_for_read(), copy_attributes_based_on_mask(), blender::Span< T >::count(), create_component_points(), and invert().
Referenced by separate_geometry_set().
Definition at line 177 of file node_geo_attribute_map_range.cc.
References x.
Referenced by map_smootherstep().
Definition at line 159 of file node_geo_attribute_map_range.cc.
References x.
Referenced by map_smoothstep().
| const CPPType * blender::nodes::socket_cpp_type_get | ( | const bNodeSocketType & | stype | ) |
Definition at line 22 of file type_callbacks.cc.
References bNodeSocketType::get_cpp_type.
Referenced by compute_geometry(), socket_expand_in_mf_network(), and socket_mf_type_get().
| bool blender::nodes::socket_cpp_value_get | ( | const bNodeSocket & | socket, |
| void * | r_value | ||
| ) |
Definition at line 50 of file type_callbacks.cc.
References bNodeSocketType::get_cpp_value, and bNodeSocket::typeinfo.
Referenced by initialize_group_input().
| void blender::nodes::socket_expand_in_mf_network | ( | SocketMFNetworkBuilder & | builder | ) |
Definition at line 59 of file type_callbacks.cc.
References blender::LinearAllocator< Allocator >::allocate(), BLI_assert_unreachable, blender::nodes::SocketMFNetworkBuilder::bsocket(), buffer, bNodeSocketType::expand_in_mf_network, bNodeSocketType::get_cpp_value, blender::ResourceScope::linear_allocator(), blender::nodes::MFNetworkBuilderBase::resource_scope(), blender::nodes::SocketMFNetworkBuilder::set_constant_value(), socket_cpp_type_get(), type, and bNodeSocket::typeinfo.
Referenced by insert_unlinked_input().
| bool blender::nodes::socket_is_mf_data_socket | ( | const bNodeSocketType & | stype | ) |
Definition at line 39 of file type_callbacks.cc.
References bNodeSocketType::expand_in_mf_network, bNodeSocketType::get_cpp_value, and socket_mf_type_get().
Referenced by blender::nodes::MFNetworkTreeMap::add_try_match(), has_data_sockets(), insert_links_and_unlinked_inputs(), and insert_unlinked_input().
| std::optional< MFDataType > blender::nodes::socket_mf_type_get | ( | const bNodeSocketType & | stype | ) |
Definition at line 30 of file type_callbacks.cc.
References blender::fn::MFDataType::ForSingle(), and socket_cpp_type_get().
Referenced by create_function_for_node_that_expands_into_multiple(), blender::nodes::NodeMFNetworkBuilder::get_default_fn(), insert_dummy_node(), and socket_is_mf_data_socket().
|
static |
Definition at line 51 of file node_geo_mesh_primitive_uv_sphere.cc.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 46 of file node_geo_mesh_primitive_uv_sphere.cc.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 58 of file node_geo_mesh_primitive_uv_sphere.cc.
Referenced by create_uv_sphere_mesh().
|
static |
Definition at line 41 of file node_geo_mesh_primitive_uv_sphere.cc.
Referenced by calculate_sphere_edge_indices(), calculate_sphere_faces(), and create_uv_sphere_mesh().
|
static |
Definition at line 127 of file node_geo_join_geometry.cc.
Referenced by join_components().
|
static |
Definition at line 98 of file node_geo_transform.cc.
References add_v3_v3(), blender::float4x4::from_loc_eul_scale(), transform(), InstancesComponent::transforms(), and use_translate().
Referenced by geo_node_transform_exec().
| void blender::nodes::transform_mesh | ( | Mesh * | mesh, |
| const float3 | translation, | ||
| const float3 | rotation, | ||
| const float3 | scale | ||
| ) |
Definition at line 60 of file node_geo_transform.cc.
References BKE_mesh_calc_normals(), BKE_mesh_transform(), BKE_mesh_translate(), blender::float4x4::from_loc_eul_scale(), blender::float3::is_zero(), mesh, use_translate(), and blender::float4x4::values.
Referenced by geo_node_bounding_box_exec(), and geo_node_transform_exec().
|
static |
Definition at line 78 of file node_geo_transform.cc.
References add_v3_v3(), PointCloud::co, blender::float4x4::from_loc_eul_scale(), PointCloud::totpoint, and use_translate().
Referenced by geo_node_transform_exec().
|
static |
Definition at line 119 of file node_geo_transform.cc.
References BKE_volume_grid_get_for_write(), BKE_volume_load(), BKE_volume_num_grids(), DEG_get_bmain(), blender::float4x4::from_loc_eul_scale(), params, UNUSED_VARS, blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by geo_node_transform_exec().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 335 of file NOD_math_functions.hh.
References Freestyle::a, Freestyle::c, callback, blender::float3::faceforward(), get_float3_math_operation_info(), NODE_VECTOR_MATH_FACEFORWARD, NODE_VECTOR_MATH_WRAP, wrapf(), blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by do_math_operation_fl3_fl3_fl3_to_fl3(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 366 of file NOD_math_functions.hh.
References Freestyle::a, Freestyle::c, callback, get_float3_math_operation_info(), NODE_VECTOR_MATH_REFRACT, blender::float3::normalized(), and blender::float3::refract().
Referenced by do_math_operation_fl3_fl3_fl_to_fl3(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 306 of file NOD_math_functions.hh.
References Freestyle::a, callback, blender::float3::distance(), blender::float3::dot(), get_float3_math_operation_info(), NODE_VECTOR_MATH_DISTANCE, and NODE_VECTOR_MATH_DOT_PRODUCT.
Referenced by do_math_operation_fl3_fl3_to_fl(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 240 of file NOD_math_functions.hh.
References Freestyle::a, callback, blender::float3::cross_high_precision(), blender::float3::dot(), floor(), get_float3_math_operation_info(), max_ff(), min_ff(), NODE_VECTOR_MATH_ADD, NODE_VECTOR_MATH_CROSS_PRODUCT, NODE_VECTOR_MATH_DIVIDE, NODE_VECTOR_MATH_MAXIMUM, NODE_VECTOR_MATH_MINIMUM, NODE_VECTOR_MATH_MODULO, NODE_VECTOR_MATH_MULTIPLY, NODE_VECTOR_MATH_PROJECT, NODE_VECTOR_MATH_REFLECT, NODE_VECTOR_MATH_SNAP, NODE_VECTOR_MATH_SUBTRACT, blender::float3::normalize(), safe_divide(), safe_modf(), blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by do_math_operation_fl3_fl3_to_fl3(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 421 of file NOD_math_functions.hh.
References Freestyle::a, callback, get_float3_math_operation_info(), and NODE_VECTOR_MATH_SCALE.
Referenced by do_math_operation_fl3_fl_to_fl3(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 394 of file NOD_math_functions.hh.
References callback, get_float3_math_operation_info(), blender::float3::length(), and NODE_VECTOR_MATH_LENGTH.
Referenced by do_math_operation_fl3_to_fl(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 448 of file NOD_math_functions.hh.
References blender::float3::abs(), callback, ceil(), cosf, floor(), get_float3_math_operation_info(), NODE_VECTOR_MATH_ABSOLUTE, NODE_VECTOR_MATH_CEIL, NODE_VECTOR_MATH_COSINE, NODE_VECTOR_MATH_FLOOR, NODE_VECTOR_MATH_FRACTION, NODE_VECTOR_MATH_NORMALIZE, NODE_VECTOR_MATH_SINE, NODE_VECTOR_MATH_TANGENT, blender::float3::normalize(), sinf, tanf, blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by do_math_operation_fl3_to_fl3(), and get_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 173 of file NOD_math_functions.hh.
References Freestyle::a, Freestyle::c, callback, fabsf, fmaxf, get_float_math_operation_info(), NODE_MATH_COMPARE, NODE_MATH_MULTIPLY_ADD, NODE_MATH_SMOOTH_MAX, NODE_MATH_SMOOTH_MIN, NODE_MATH_WRAP, smoothminf(), and wrapf().
Referenced by do_math_operation(), and get_base_multi_function().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 207 of file NOD_math_functions.hh.
References Freestyle::a, callback, get_float_compare_operation_info(), NODE_FLOAT_COMPARE_GREATER_EQUAL, NODE_FLOAT_COMPARE_GREATER_THAN, NODE_FLOAT_COMPARE_LESS_EQUAL, and NODE_FLOAT_COMPARE_LESS_THAN.
Referenced by do_math_operation().
|
inline |
This is similar to try_dispatch_float_math_fl_to_fl, just with a different callback signature.
Definition at line 123 of file NOD_math_functions.hh.
References Freestyle::a, atan2f, callback, floorf, get_float_math_operation_info(), max, min, NODE_MATH_ADD, NODE_MATH_ARCTAN2, NODE_MATH_DIVIDE, NODE_MATH_GREATER_THAN, NODE_MATH_LESS_THAN, NODE_MATH_LOGARITHM, NODE_MATH_MAXIMUM, NODE_MATH_MINIMUM, NODE_MATH_MODULO, NODE_MATH_MULTIPLY, NODE_MATH_PINGPONG, NODE_MATH_POWER, NODE_MATH_SNAP, NODE_MATH_SUBTRACT, pingpongf(), safe_divide(), safe_logf(), safe_modf(), and safe_powf().
Referenced by do_math_operation(), and get_base_multi_function().
|
inline |
This calls the callback with two arguments:
The math function that is passed to the callback is actually a lambda function that is different for every operation. Therefore, if the callback is templated on the math function, it will get instantiated for every operation separately. This has two benefits:
If separate instantiations are not desired, the callback can also take a function pointer with the following signature as input instead: float (*math_function)(float a).
Definition at line 59 of file NOD_math_functions.hh.
References Freestyle::a, atanf, callback, ceilf, compatible_signf(), cosf, coshf, DEG2RAD, expf, fabs(), floorf, get_float_math_operation_info(), NODE_MATH_ABSOLUTE, NODE_MATH_ARCCOSINE, NODE_MATH_ARCSINE, NODE_MATH_ARCTANGENT, NODE_MATH_CEIL, NODE_MATH_COSH, NODE_MATH_COSINE, NODE_MATH_DEGREES, NODE_MATH_EXPONENT, NODE_MATH_FLOOR, NODE_MATH_FRACTION, NODE_MATH_INV_SQRT, NODE_MATH_RADIANS, NODE_MATH_ROUND, NODE_MATH_SIGN, NODE_MATH_SINE, NODE_MATH_SINH, NODE_MATH_SQRT, NODE_MATH_TANGENT, NODE_MATH_TANH, NODE_MATH_TRUNC, RAD2DEG, safe_acosf(), safe_asinf(), safe_inverse_sqrtf(), safe_sqrtf(), sinf, sinhf, tanf, and tanhf.
Referenced by do_math_operation(), and get_base_multi_function().
| void blender::nodes::update_attribute_input_socket_availabilities | ( | bNode & | node, |
| const StringRef | name, | ||
| const GeometryNodeAttributeInputMode | mode, | ||
| const bool | name_is_available | ||
| ) |
Update the availability of a group of input sockets with the same name, used for switching between attribute inputs or single values.
| mode | Controls which socket of the group to make available. |
| name_is_available | If false, make all sockets with this name unavailable. |
Definition at line 38 of file node_geometry_util.cc.
References GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE, GEO_NODE_ATTRIBUTE_INPUT_COLOR, GEO_NODE_ATTRIBUTE_INPUT_FLOAT, GEO_NODE_ATTRIBUTE_INPUT_VECTOR, LISTBASE_FOREACH, node, nodeSetSocketAvailability(), SOCK_FLOAT, SOCK_RGBA, SOCK_STRING, SOCK_VECTOR, and socket_is_available().
Referenced by geo_node_align_rotation_to_vector_update(), geo_node_attribute_combine_xyz_update(), geo_node_attribute_compare_update(), geo_node_attribute_math_update(), geo_node_attribute_mix_update(), geo_node_attribute_separate_xyz_update(), geo_node_attribute_vector_math_update(), geo_node_point_rotate_update(), geo_node_point_scale_update(), geo_node_point_translate_update(), and geo_node_points_to_volume_update().
|
static |
Definition at line 204 of file node_geo_point_distribute.cc.
References BLI_hash_int_01(), get_mesh_looptris(), blender::float3::hash(), hash, blender::Span< T >::index_range(), max, mesh, MLoopTri::tri, blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by distribute_points_poisson_disk().
|
static |
Definition at line 158 of file node_geo_point_distribute.cc.
References build_kdtree(), blender::Span< T >::index_range(), UNUSED, and user_data.
Referenced by distribute_points_poisson_disk().
Definition at line 48 of file node_geo_transform.cc.
References compare_ff(), blender::float3::length_squared(), blender::float3::x, blender::float3::y, and blender::float3::z.
Referenced by transform_instances(), transform_mesh(), and transform_pointcloud().
|
static |
Definition at line 61 of file node_geo_mesh_primitive_cone.cc.
References GEO_NODE_MESH_CIRCLE_FILL_TRIANGLE_FAN.
Referenced by create_cylinder_or_cone_mesh().