How to remove the mesh outside of the second mesh

image
image
in the following scene, I’m loading a gltf model of an eyeglass rim and I have added a glass cylinder using cylinder geometry. my objectify is to create the lense for the rim. how do I remove the part of the lens mesh outside the contour of the rim?

Why not model the lens as well? Masking things in 3D isn’t as straight-forward as in 3D, usually revolving around per-axis clipping or CSG, so it’s best to have meshes modelled properly from the start.

yeah i understand. but the thing is i have many other shapes of rim and i want to do this in a more smart way by adapting the lense to the rim shape. now i found a way to do this by getting all the rim vertex points and creating convex geometry (to create a filled object from the rim) then i used CSG to subtract the rim geometry from the lense. the convex geometry depends on the rim model which in my case was not that well made. i’m leaving this comment for anyone looking for ideas and have met the same problem