Minimal Bounding Calculation in HOOPS Communicator

The class below calculates the minimal bounding box for a node in HOOPS Communicator. This is the most tightly fitting non axis-aligned bounding box around the geometry contained within a node. Calculating this bounding box can be useful for volume calculations and measurements and is functionality often found in various CAD applications. As a bonus, this class can also calculate the convex hull for a node.

You can learn more here:

See here for a live 3D Sandbox demo:
https://3dsandbox.techsoft3d.com/?snippet=3GAnpHSmkLRLI8pwWNQBL0&autorun=true

Can you generate minimum Bounding in markup form ?
I use MinimalBounding calculateMinimalBounding this method to get to the variables of the smallest min and Max, and then use the BoundingBoxMarkup. Js to generate markup, found position is not right. As shown in the figure
image

Look forward to receiving a reply

Hello @erduowang1995,

Unfortunately, a key limitation with using the bounding box markup is that the bounding box is restricted to being axis-aligned. As stated in the docs:

Represents an axis-aligned bounding box. A box is represented by a minimum and maximum point which describe the extents of the box.

In the case of the moto model in your pic, the bounding box is oriented lengthwise along the y-axis.

Thanks,
Tino

2 Likes

Thank you for your reply. I solved it through matrix’s transform

2 Likes