Sign in to follow this  
lucky6969b

Tangent and its projection

Recommended Posts

I think you need to explain better what you mean. A tangent is normally a vector used to describe the direction of a path at certain point. A vertex has no direction, its just a point in space.

Share this post


Link to post
Share on other sites
Given that you have a mesh, each vertex is shared by a set of triangles. Estimate a vertex normal, say, by averaging the normals of the triangles sharing the vertex and then normalizing that average. You now have the vertex position P and vertex normal N, so the tangent plane to the vertex is defined by Dot(N,X-P) = 0, where X is any point on the plane.

You have a lot of tangents to choose from. For one of these tangents, call it T, and an edge direction vector D, you can project T onto D in the usual manner. Perhaps instead you want this the other way around: Given an edge direction D, find a tangent vector T that "points in the D direction as close as possible". You simply project D onto the tangent plane (and then normalize the projection).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this