Yes, I have found this in the examples, too. The question was more aiming on
how to extracting normals from my points, but I guess I have to do this by
computing normals from two of the surrounding points?!
Just to test I was also using the position vector for the normal vector (the
way Sphere.cpp does, if I am not mistaken), but still PoissonMesh errors
because it thinks no normals are defined. Is there something I forgot? Please
see the geometry_engine below:
A normal is not a XYZ in space, it's a vector, so you can't use the position of
the point directly.
Sphere is able to use it because the sphere is centered on 0,0,0. If the
sphere was defined somewhere else in space you'd need to subtract the center of
the sphere from the point position to get a proper normal.
With a random point cloud finding the normal is not easy...you can't simply use
the center of the point cloud.
Ok, I understand this, but the PoissonMesh should at least not error on
me with "No normals found" when normals are defined (via the point
position vector)?!
Sebastian
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev