Append shapes but still change dimensions of each shape

Hi there, I’m creating a web app using ParaView and Trame for heart valve surgery planning. Essentially, users can upload a 3D model of a heart and visualise the placement of a replacement valve on this model.

I have the following shape representing the valve that I’ve created using the cylinder and disc sources in ParaView. The idea is for the user to be able to set the radius and height of the grey cylinder, and the red part of the shape should change its radius and height accordingly. The user will also be able to move and rotate this whole shape around.


Currently, I can change the dimensions and positioning of just the grey cylinder using the transform filter, however I’m struggling to attach the red part to the grey cylinder and update its dimensions. I have tried using the transform filter on the red part so that I can adjust its dimensions, and then use the append geometry filter to join the red part to the grey cylinder so they are joined together when adjusting the valve’s position and angle, however this doesn’t work in the way I want it.

I guess my overall question is, is there a way to join these parts of the shape together so that their position and angle can be adjusted together, but the dimensions of each part can be adjusted separately?

I’m not sure what you are trying to do that is not working. You can apply the same transform to the two objects with the same parameters and they will retain their relative position (e.g.,the red collar over the grey cylinder). So, if you create the cylinder of the desired size, then create the collar to fit over the cylinder, and then transform both the same way, the collar should remain fitted over the cylinder.

Thanks for replying! One issue I was having with the transform filter was that if I changed the height of the grey cylinder to make it taller, the base of the cylinder wouldn’t be aligned with the top of the red part anymore, like in the picture below


However, after playing around with it a bit more, I think I have figured out a way to align the grey cylinder by translating it up and down based on how much its height has grown/shrunk. I’ll see if this works for what I want to achieve, and ask again if I run into new issues.