I have a 2D sketch of a network of channels, which periodically constrict and re-expand, as shown below:
I need to extrude these channel vertically to create a mold. I can easily manage to extrude the channels at a constant height (as in the figure below):
However, for the purposes of my project, I would need that the 3D extruded channel maintained a square cross-section. In other words I would need to modulate the height of the extrusion so that it matches the width of the channel being extruded (the height should get lower as the channel constrict, the increase back as the channel re-expand). Is there anyway to achieve this square-cross-section extrusion without the need of creating a variable surface on top and extrude up to the surface? (this wouldn't be easy to achieve as the position of these traps varies throughout the design and they are not aligned in the other direction).
I hope I managed to convey my problem correctly.
Thanks in advance for any help.