开发者

Project an axis to a plane

开发者 https://www.devze.com 2022-12-23 23:19 出处:网络
How do I project the X axis to a plane if the plane is defined by three points? The default local 1-direction is the projection of the global x-axis onto the surface. If the global x-axis is within 0

How do I project the X axis to a plane if the plane is defined by three points?

The default local 1-direction is the projection of the global x-axis onto the surface. If the global x-axis is within 0.1° of being normal to the surface, the local 1-direction is the projection of the global z-axis onto the surface.

Let's suppose t开发者_如何学Gohat these points are:

t1 = [-0.362879991531372, 0.357021987438202, -0.373737007379532]

t2 = [-0.383525013923645, 0.371621012687683, -0.383549988269806]

t3 = [-0.383534014225006, 0.34629300236702, -0.38544899225235]

Is the vector [0.78280971952246, -0.0307519963686645, 0.411184845614438] correct answer in this case? I've calculated the angle between the surf and x (1,0,0) is ~28°.

And can you give the entire procedure for the calculation, because I'm just puzzled.


Your diagram is a little unclear (for instance, it doesn't show t1, t2, t3), but it looks as if you want a vector tangent to the surface and in the XZ plane. If that's correct, then you have to calculate the partial derivative with respect to x (the slope in the x direction, which is easy if the surface really is a plane and you have three non-colinear points) and the y-component of your answer will be zero. If that's not correct, then please explain what "projection" you prefer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号