如何创建和渲染AABB(BoundingBox)? [英] How to create and render AABB(BoundingBox)?

查看:474
本文介绍了如何创建和渲染AABB(BoundingBox)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我必须创建一个BoundingBox,但我不知道我该怎么做(

I must create a BoundingBox, but I don't know how I must do it(

请帮忙我

推荐答案

嗨vanGEEK,

Hi vanGEEK,

感谢您在此发帖。

>>我必须创建一个BoundingBox,但我不知道我该怎么做

对于这种情况,你可以在DirectX中使用BoundingBox接口。例如:

For this case, you could use BoundingBox interface in DirectX. For example:

BoundingBox.CreateFromPoints 方法,用于从点创建一个BoundingBox。

BoundingBox.CreateFromPoints methods which creates a BoundingBox from points.

BoundingBox.CreateFromSphere 方法创建一个大的BoundingBox足以包含指定的
BoundingSphere。

BoundingBox.CreateFromSphere method which creates a BoundingBox large enough to contain the a specified BoundingSphere.

希望这可以帮到你。

最好的问候,

Sera Yu

Best Regards,
Sera Yu


这篇关于如何创建和渲染AABB(BoundingBox)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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