shear - geometry nodes [Blender]
With this geometry node setup you can generate geometry from a profile and a path curve. It is a bit like the mesh to curve but better. Because the cuts don't get distorted! The cuts behave like you know it from the shear modeling operator.
I also added some more features, because I want this tool to give you the opportunity to model shears procedurally in a non-destructive workflow.
- UV's are generated in an unstretched way!
- You can modify the UV's in the modifier panel
- Shading options: Flat, Smooth, Autosmooth (profile angle as well as path angle)
- Choose different materials for the end caps.
- Access the UV's and caps in the shader with the attribute node (UVMap / caps)
Usage:
Option 1:
Link or append the shear node from the shear.blend file (from the Node Tree section). Model your profile and path curves (you can use curves or meshes, both work).
On the path curve, add a geometry nodes modifier and select the shear node.
Then, in the shear node under profile, select your profile curve or mesh. Don't forget to select the right direction from which you are looking at (direction Axis).
Option 2:
Put the shear file in a folder and add this folder in the blender preferences under File Paths -> Asset Libraries. Now you can simply drag and drop the node onto your path.
File is saved in 4.4.0 for subpanel feature. But I tested linking / appending in a 4.3.2 file, and it just worked fine.
You can find a tutorial, how to use it here:
https://www.youtube.com/watch?v=PonopjQIwYo
Additional Notes:
To construct the nice unstretched UV's the node setup does some merging and scaling in the background. Usually you wouldn't have to touch these values, but if something with the generated geometry looks odd, you can try to change these values under the Construction Debug panel.
Some words, what this setup can't do:
It only works in one direction plane. So your path has to be on one imagined plane. Select the imagined plane you are looking at by choosing the direction axis where you are looking from onto your path.
With this geometry node setup you can generate geometry from a profile and a path curve. It is a bit like the mesh to curve but better. Because the cuts don't get distorted! The cuts behave like you know it from the shear modeling operator.