# Tangent and its projection

This topic is 3656 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, How do I create a tangent for a vertex and project it onto some other edges? This is for navmesh generation. Thanks Jack

##### Share on other sites
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 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).

1. 1
2. 2
3. 3
4. 4
Rutin
12
5. 5

• 12
• 16
• 10
• 14
• 10
• ### Forum Statistics

• Total Topics
632660
• Total Posts
3007693
• ### Who's Online (See full list)

There are no registered users currently online

×