部分内置几何体增加BoundingBox数据计算

This commit is contained in:
hyzboy 2025-06-17 01:17:57 +08:00
parent 585fd41966
commit 15da48eede
2 changed files with 1344 additions and 1277 deletions

View File

@ -28,6 +28,12 @@ public:
Primitive(const AnsiString &pn,PrimitiveData *pd);
virtual ~Primitive();
void SetBoundingBox(const AABB &bb) { bounding_box=bb; } ///<设置包围盒
void SetBoundingBox(const Vector3f &box_min,const Vector3f &box_max)
{
bounding_box.SetMinMax(box_min,box_max);
}
public:
const AnsiString & GetName ()const{ return prim_name; }

File diff suppressed because it is too large Load Diff