threedle / GeoCode

GeoCode maps 3D shapes to a human-interpretable parameter space, allowing to intuitively edit the recovered 3D shapes from a point cloud or sketch input.
379 stars 24 forks source link

Is this a bug in procedural_table.blend? #12

Closed bluestyle97 closed 1 year ago

bluestyle97 commented 1 year ago

Hi, thanks for your interesting work! I'm trying to use your blend files to generate shapes with blender. However, I found that the table_top_scale_x and table_top_scale_y parameters in "procedural_table.blend" would influence the height of the table. For example, if I change both table_top_scale_x and table_top_scale_y from 2.6 to 2.0, the height of the table would get shorter significantly. In my understanding, the table_top_scale_x and table_top_scale_y parameters should control the width and length of the table along the x-axis and y-axis respectively, without influencing the height. So is this a bug in the table's blend file?

ofekp commented 1 year ago

Thank you for your interest :) This was made to ensure the validity of the shapes at some cost of accuracy. You can disable this by running the following two commands within Blender in the scripting workspace:

bpy.data.node_groups["Geometry Nodes.002"].links.new(bpy.data.node_groups["Geometry Nodes.002"].nodes["Group Input.016"].outputs[2], bpy.data.node_groups["Geometry Nodes.002"].nodes["Math.021"].inputs[0])
bpy.data.node_groups["Geometry Nodes.002"].links.new(bpy.data.node_groups["Geometry Nodes.002"].nodes["Group Input.016"].outputs[2], bpy.data.node_groups["Geometry Nodes.002"].nodes["Reroute.021"].inputs[0])

Hope this would help, let me know if this solved it for you.

bluestyle97 commented 1 year ago

This solved my question. Thanks a lot!