I want to display a three-dimensional shape from a path. In my opinion, the easiest way to do this is to use THREE.ExtrudeGeometry. THREE.ExtrudeGeometry takes as its argument, the same contour as THREE.Shape.
It's just a matter of adding the vertices of the contour to THREE.Shape. As vertices THREE.Shape takes points, type Vector2. Vector2 has 2 parameters X and Y.
In practice, with Vector2 I can draw the bases of shapes (for extrusion) only in the XY plane.
That is, the base can only be drawn perpendicular to the base of the coordinate axis. And this base is the ZX plane.
I need to draw THREE.Shape on the ZX plane, so I can draw THREE.ExtrudeGeometry from the base upwards.
How do I draw with Vector2 on the XZ plane? I can't use Vector3 with THREE.Shape. And only THREE.Shape is accepted as an argument in THREE.ExtrudeGeometry?