Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorFabian Schempp <fabianschempp@googlemail.com>2022-04-09 00:08:30 +0300
committerFabian Schempp <fabianschempp@googlemail.com>2022-04-11 01:32:00 +0300
commitab6939ff78f131e5270e17b9ee73075b512a1a3f (patch)
tree2ad2359e071ff746090443d38ddfdf84f1aeb118 /source
parentb82c13c174a5358259e3218793864949b338e05a (diff)
merge to master
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_remesh_voxel.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_remesh_voxel.cc b/source/blender/nodes/geometry/nodes/node_geo_remesh_voxel.cc
index a6e27914eeb..3e688ce525e 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_remesh_voxel.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_remesh_voxel.cc
@@ -43,6 +43,32 @@ static void node_geo_exec(GeoNodeExecParams params)
}
});
+ ///
+ // GField field = get_input_attribute_field(params, data_type);
+ //
+ // auto return_default = [&]() {
+ // attribute_math::convert_to_static_type(data_type, [&](auto dummy) {
+ // using T = decltype(dummy);
+ // output_attribute_field(params, fn::make_constant_field<T>(T()));
+ // });
+ // };
+ //
+ // GField output_field;
+ // if (geometry.has_curves() && !geometry.has_mesh() && !geometry.has_pointcloud()) {
+ // params.error_message_add(NodeWarningType::Error,
+ // TIP_("The source geometry must contain a mesh or a point cloud"));
+ // return return_default();
+ // }
+ // auto fn = std::make_unique<NearestTransferFunction>(
+ // std::move(geometry), std::move(field), domain);
+ // auto op = std::make_shared<FieldOperation>(
+ // FieldOperation(std::move(fn), {params.extract_input<Field<float3>>("Source Position")}));
+ // output_field = GField(std::move(op));
+ // break;
+ // output_attribute_field(params, std::move(output_field));
+ //
+ ///
+
params.set_output("Mesh", std::move(geometry_set));
#else
params.error_message_add(NodeWarningType::Error,