How to find a point on surface so that its normal vector is equal to a pre-defined value?
Paul Jimenez Fri, 01/16/2009 - 09:49
I would be surprised if OCC has a method to do that. Besides, for some surfaces, there could be an infinite number of points with such a normal or maybe none. If you want to do it yourself, you would need to have some fun with derivatives of the surface. It doesn't look like an easy task at all.
True, that's a hard problem. Why don't you make a grid of samples, where you store the normal of the surface, and check if it lies within a tolerence from your reference vector? A more elegant approach would be to do this with a quadtree on the u,v domain.
Use GeomLprops_SLprops for finding the normal on a u,v coord.
Fri, 01/16/2009 - 09:49
I would be surprised if OCC has a method to do that. Besides, for some surfaces, there could be an infinite number of points with such a normal or maybe none. If you want to do it yourself, you would need to have some fun with derivatives of the surface. It doesn't look like an easy task at all.
Fri, 01/16/2009 - 15:55
Hi Wang,
True, that's a hard problem. Why don't you make a grid of samples, where you store the normal of the surface, and check if it lies within a tolerence from your reference vector? A more elegant approach would be to do this with a quadtree on the u,v domain.
Use GeomLprops_SLprops for finding the normal on a u,v coord.
-jelle