Masoud Posted February 15, 2020 Share Posted February 15, 2020 Hi; Is there a way to fill geometry with another one, without penetration? Thanks for helping. Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted February 15, 2020 Share Posted February 15, 2020 Hi Masoud, you can fill meshes with other meshes by copying them to VDB to spheres. Make sure to center and scale the copy mesh beforehand so it fits into a unit sphere. // center object vector center = getbbox_center(0); v@P -= center; // maximum distance from center float dist = length(v@P); setdetailattrib(1, 'max_dist', dist, 'max'); // scale maximum distance to 1 float scale = detail(0, 'max_dist', 0); v@P *= 1.0 / scale; fill_mesh.hipnc 1 Quote Link to comment Share on other sites More sharing options...
Masoud Posted February 15, 2020 Author Share Posted February 15, 2020 Hi "Konstantin"; Your solution is great, but it uses a spherical boundary to separate objects, right? Actually, I'm looking for a way to fill an object more precisely, without a big gap between them, something like the image below: (The object in this sample scene is generated using Cinema4D.) Thanks. Quote Link to comment Share on other sites More sharing options...
AslakKS Posted February 15, 2020 Share Posted February 15, 2020 http://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#RBD_deintersect_via_scaling_up_geo 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.