I need some help with an issue I have.
I want to move a closed curve inside the edges of another curve.
I want to move the purple curve and not get out of the red curve.
Bellow is the file with the two curves.
curve_in_curve.3dm (65.8 KB)
I need some help with an issue I have.
I want to move a closed curve inside the edges of another curve.
hi, please explain what the purpose of this exercise is, currently it is not clear what you really need, obviously you could just move the curve manually around but i suspect that is not what you want. if this is a grasshopper issue use an appropriate category for it for instance grasshopper, but at least a further elaboration would help to get us started
Hi. The red curve is the perimeter of the lower floors of a building. The purple curve is the perimeter of the upper floors. I want the movement of the upper floor to be parametric in order to show the different shapes that the building can have.
This is a grasshopper issue. This is my first post. I post it in a wrong category? Must I move it in an other category or post it again?
if you are open to plugins, Clipper2 has a Minkowski Sum component:
that small white drop-like curve is the area inside of which you can place the center of the purple box, in order for the purple box to be always fully contained by the red curve
Well … that’s rather a very bad approach to twisted or “variable” or whatever buildings. Reason? Obvious: in similar cases Space schedules + LBS + Facade extrutions/module planarity + a zillion other factors (like elevators layout) are paramount. Anyway get a Rnd “try to fit” approach (a bit naive I contess).
Curve_MoveInsideCurve_V1.gh (125.2 KB)
Or … you maybe mean that you want an approach that transforms the next floor in order to stay inside the previous footprint ??? (not solvable in a rational way for any Topology).
I have a problem with Clipper2. I can not install it.
you can find it here or in PackageManager command inside Rhino
also Clipper (1) should be fine (you’ll have to replace the Minkowski Sum component with the one from Clipper 1 in case)
just in case it helps, though i assume that a plugin if you get it to work would be better anyway, still you can copy each side parallel perpendicular to each side towards the area centroid of the purple curve, then reduce this distance from the center again by each distance to the closest corners, use CurveBoolean and click inside the intersections you will end up with the same result as posted by @inno
Thank you very much.
Have a wonderful and healthy 2025