I calculate normals using ComputeNormals method, but the calculated normals are not like box mesh,Should I calculate the normals for the top face and side face of the custom mesh separately
oh yeah, default don’t work either, maybe a broken deploy? lol : O
+ it’s only broken for typescript
Looks like the TypeScript playgrounds have been fixed!
Anywho, this is expected behavior. The length of the normal lines from “Render vertex normals” is proportional to the mesh’s bounding box size. We do this to help users better see the normals
I added the relevant code to your PG so you can see how it’s calculated:
Thank you, I may not have expressed it clearly, I want the normals on the corners of the custom mesh to be like the corners of the box, generating 3 normals. There is only one normal line at the corner of the custom mesh, and its angle is public. Should I calculate normals separately for planes and side?
You will have to convert the mesh to flat shaded if you want each triangle to have its own vertices, that are not shared with other triangles:
Big thanks to you and @alexchuber and the folks in the community, this solved my problem