From 25db3a00561c27fda3281fdb4e59b82ebad2af2a Mon Sep 17 00:00:00 2001 From: Brandel Zachernuk Date: Mon, 5 Aug 2024 14:20:00 -0700 Subject: [PATCH] revised the bounding box representation to be based on two DOMPoint objects, updated the diagram to reflect this priority --- images/bounding-box.svg | 192 ++++++++++++++++++---------------------- index.html | 32 ++----- 2 files changed, 93 insertions(+), 131 deletions(-) diff --git a/images/bounding-box.svg b/images/bounding-box.svg index 864949e..b019177 100644 --- a/images/bounding-box.svg +++ b/images/bounding-box.svg @@ -1,75 +1,72 @@ - + + viewBox="0 0 756.7 370.6" style="enable-background:new 0 0 756.7 370.6;" xml:space="preserve"> - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + 1.3 @@ -80,66 +77,45 @@ 1 - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - r + (0, 0.5, -0.25) diff --git a/index.html b/index.html index 616f1c4..0d0ddf9 100644 --- a/index.html +++ b/index.html @@ -131,39 +131,25 @@

A 3D asset file contains positional data for the surfaces and objects within it. Following the successful processing of a model resource, the - {{Model}}'s {{Model/boundingBox}} attribute references a - [[\DOMBoundingBoxReadOnly]] internal slot, which - is a nullable [=map=] of whose values are {{DOMPoint}}s. - The slot contains four entries: + {{Model}}'s Bounding box information is conveyed in the + {{Model/boundingBoxCenter}} attribute and the + {{Model/boundingBoxExtent}} attribute, both presented as three- + dimensional {{DOMPointReadOnly}} objects.

-
-
"min"
-
A {{DOMPoint}} representing the minimum dimension, in world - space, that the contents of a model occupies.
-
"max"
-
A {{DOMPoint}} representing the maximum dimension, in world - space, that the contents of a model occupies.
-
"center"
-
A {{DOMPoint}} representing the mean of the min and max - dimensions, in world space, of the bounding box that the contents of - a model occupies.
-
"radius"
-
A floating-point number representing the radius of effective - bounding sphere from the center of the box. -
-

- If a model does not contain a valid resource, the [[\DOMBoundingBoxReadOnly]] internal slot is null. + If a model does not contain a valid resource, the attributes referring + to the extent and center of the bounding box are null.

-
Visual aid demonstrating the extent of an object's bounding box
+
Visual aid demonstrating the center and extent of an + object's bounding box