PCG building creation from random splines.

Hello,

I import geo data where buildings are outlined with a closed-loop spline from a JSON file. I want to use PGC graph to create buildings with walls that follow these splines. I’ve watched many tutorials that show great techniques, but I have a problem.

All the tutorials assume the outline spline is aligned with the X and Y axes, so the interior points of the spline align with the wall and floor outline. My splines have a random orientation in the world, and the interior points are always generated aligned with the X and Y axes. There’s an option to follow the spline’s curvature for interior orientation, but it only produces rotated points and doesn’t cover the spline’s interior fully.

Does anyone have any fresh ideas? I also tried using the Create Grid Points node, but the grid is still aligned with the X and Y axes. When I transform the points, only the points rotate, not the grid.

Any help would be appreciated.

See the picture below:

Problem solved.