My Mesh drawn with the mouse is 2D

Hello, I found a Japanese source and made a mesh drawn with a mouse. But while this was 3D for the person I watched his training with, it became 2D for me. I saw a note at the bottom, but I didn’t quite understand it. Can you help me?

Japan Reference; https://daichi-no.blog/3d-cube-mesh-with-mouse/

My;

My Code;

Drawline

Oh Code Problem
Repeat;
https://paste.ofcode.org/35MpujY9kDDH3qcNcJ3BEFi

Since it is not your original code, it will be difficult for you depending on how much you understand it.

You have to clone all the vertices and move them in the thickness direction on top of that you have to reordering the triangles in the opposite clockwise or flip the normals. then you are going to have extra more vertices to do the side way stitching between 2 planes.

Oh Do you give me example?

you can training yourself by create a simple plane with 4 vertices and turn it into a box with final result 24 vertices.

i gave you homework, try to make a box out of 4 vertices, if you can do that, then gg

I have some procedural examples in my MakeGeo project. There’s even one called Extrude2DShape!

Full use case set up in the testmakeextrusion.unity scene, showing a 2D letter K getting extruded into 3D with separate materials for front, back, sides.

MakeGeo is presently hosted at these locations:

https://bitbucket.org/kurtdekker/makegeo

1 Like