如何在wpf中显示每个3d点的法线 [英] How to show normal to each 3d point in wpf

查看:59
本文介绍了如何在wpf中显示每个3d点的法线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在wpf中使用ScreenSpaceLine3d控件加入3d点的集合。如何根据给定的i,j和k值对应点绘制每个3d点的法线,以便在UI中向用户显示每个点的方向。

解决方案

这在数学上并不合理。无法定义点或矢量的法线。您可以定义曲面的法线(以及更高维度的对象)。如果你必须在某个点上平行于表面的非共线矢量,则法线将是这两个矢量的矢量积。



-SA

We can join collection of 3d points using ScreenSpaceLine3d control in wpf. How to draw a normal to each 3d point based on given i,j and k values corresponding points so that direction of each points are shown to user in UI.

解决方案

This is not mathematically sensible. A normal to a point or a vector cannot be defined. You can define a normal to a surface (and objects of higher dimensions). If you have to non-collinear vectors parallel to the surface at some point, the normal will be the vector product of those two vectors.

—SA


这篇关于如何在wpf中显示每个3d点的法线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆