How to create a wall?

Hey.
I am trying to create a wall, but here I am having problems:
How to create a wall correctly?
Is it possible to create a wall from a shape and raise it using ExtrudeBufferGeometry?

I tried to create squares from a shape and move them with cubes, but I could not rotate this square in the directions of the mouse.

Now I’m creating this line


Together with the line, I think to create gray squares and raise them with ExtrudeBufferGeometry


Another question: how to turn the shape? He has no Z coordinates.
I just drew a square and made an ExtrudeBufferGeometry. The square goes to the side. I need to raise it up on Y.

As for walls, if I understood what you mean, this example may help you.

As for rotation - is there a reason why you can’t rotate the shape before (or even after) extruding it, to make it face the direction you want to extrude it in :thinking:?

I need to do this


Here you can draw a wall with lines and raise it

Sorry, I don’t understand what the issue is rn. As above, you can rotate the extruded geometry like any geometry.

Example (these geometries are based on the same path that’s extruded in different directions. If you’d like to rotate them perfectly you can also create a pivot group around an extruded geometry to control the origin point of rotations.)

If you want to extrude lines - not shapes - it would be easier to work with points and just create geometries from them, since you don’t need to extrude anything at all then.

If I’m understanding right, maybe this is half of what you are trying to do, except what you’ll want is probably extrude 3d geometry and not flat planes.

At a high level, what you could do is have a WallCreator class that takes in two points.
And from there you can create each wall based on each wall segment.
You’ll of course need to provide in the wall height and thickness so you can create or extrude the geometry correctly. You may also need to handle re-positioning the walls and rotating it into place after you create the 3D piece from each segment.

A decision you’ll have to make too is, whether to create each wall geometry at the origin and position and rotate it into place, or create the wall geometry exactly at the segment locations. Each path has it’s up and down, but I do find it’s easier to create each wall at the origin and then re-position and re-rotate the 3D object into place.

Please clarify. Want to just add extra points?

Recently, it seems, everyone wants to build a wall.

1 Like

Thanks mjurczyk and blackstrings0 :grinning: :grin:

I drew, moved the drawn lines and raised the wall :slightly_smiling_face:


1 Like

How did you smooth out the corners?

blackstrings0 mjurczyk
Could you please tell the approach to achieve the same?