The method in my animation can work to populate content into with any shape built from lines. There are other options for non-linear shapes too, and you can allow individual shape rotations and adjustments as desired. However I don’t have animations handy for those.

All of this is private code which I cannot share, but I can say what you’re after is doable.

The ‘quick fix’ on this is to use surfaces instead of curves. Surface for the object, surface for the available space. If the sum of the area of the intersection of the object surface with the available space surface is the same as the sum of the area of the object surface, you’re all set.

Thanks to @Alien and @jacob.small , I used the @Alien graph. Finally, as @jacob.small said, I took the points that can be 1 square meter in the area. I want to place points in the x and y planes in equal intervals according to their length in the placement areas inside many rooms. But I couldn’t succeed. Any ideas?