wong shek

Results 15 comments of wong shek

@syoyo Thanks for the quick response! I have tried the modified code, however there are still some bugs, I suspect there are some deeper reasons. See these files(I didn't delete...

Can we cross multiply two adjacent **convex** edges(CCW order) to determine the normal vector?

I suppose robust normal detection method like Newell's method is adequate to almost-planar and non-convex surface, So is the problem caused by messing up the order when converting points from...

Hi @syoyo I did some tests and found some interesting results. Test files: - [ZH2.obj](https://github.com/wsh2021/FILE/blob/main/ZH2.obj) - [ZH2.mtl](https://github.com/wsh2021/FILE/blob/main/ZH2.mtl) First, I build a 3D to 2D rotate matrix(make sure the normal of...

Waiting for your good news 👍

@syoyo Sorry to reply so late. I just saw the message :) I have tested my data and most of the faces are correct, but I still found three wrong...

@syoyo Sorry to reply so late :) Anyway, I have tested my data and the normal of the faces are all correct, but I found some face missing in the...

In fact, although the code doesn't look so elegant, I can get the correct results by projecting the 3D plane to 2D through a 3D to 2D matrix, and then...

@syoyo I'm sorry I haven't contact you for quite a while, too busy recently... In order to convert 3D points into 2D, we can left multiply 3D point vector by...

@syoyo Use the Newell's Method, here are some related links: [opengl-wiki](https://www.khronos.org/opengl/wiki/Calculating_a_Surface_Normal#Newell.27s_Method) [stackoverflow](https://stackoverflow.com/a/8982812) And this is the simple implementation refer to [openmesh](https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/OpenMesh) ```c++ // Get face normal template Vec3d GetFaceNormal(const std::vector&...