检查点是否在自定义网格几何图形内 [英] Check if point is inside a custom mesh geometry

查看:42
本文介绍了检查点是否在自定义网格几何图形内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

检查点是否在自定义(不规则)网格几何图形内的最简单方法是什么?

What would be the easiest way to check if a point is inside a custom (irregular) mesh geometry?

推荐答案

这是一个计算几何问题.您可以查看查找点是否在几何内部.由于您的几何形状不规则,因此问题要困难得多.

This is a computational geometry problem. You can look at Finding if point is inside geometry. Since your geometry is irregular the problem is much harder.

但如果精度不是太重要,您可以检查点是否在几何体的边界框内.

But if precision is not too important you can check if the point is inside the bounding box of the geometry.

这篇关于检查点是否在自定义网格几何图形内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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