vcglib/apps/sample/trimesh_normal/trimesh_normal.cpp
SimonNgj opened this issue · 4 comments
When I run this code, I got this error:
Exception Unhandled
Microsoft C++ exception: vcg::MissingComponenttException at memory location ... at base.h file
Anyone know how to solve this issue? Really appreciated any help
It seems like all normal calculation methods presented in this program need "face". The error above is because the input does not have any face.
Is there any method to calculate the normals for point sets when the input is just the x, y, and z of points (Vertices), something similar to function "Filters\Normals, Curvatures and Orientation\Compute normals for point set" in MeshLab?
I found the source code of function "Filters\Normals, Curvatures and Orientation\Compute normals for point set" in meshlab-master\meshlab-master\src\meshlabplugins\filter_func
you have to enable per face normals, mesh.face.enableNormal();
then you can apply filters is needed