-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement bounding box calculation for p5.Geometry objects #6787
Comments
I would like to implement this feature. |
I think this could make sense! Some notes on the implementation:
|
In addition to the
Here's a breakdown:
|
Considering your suggestions and that what I have understood, this is what I am upto :
I would love to have your suggestions on this @davepagurek . |
Increasing access
The addition of the
calculateBoundingBox()
method in p5.js enhances accessibility by providing users with an intuitive and standardized method to visualize and analyze the spatial dimensions of 3D objects and will also be helpful in some physics simulations or shape packing.It will simplify complex tasks such as collision detection and camera control, making 3D programming more approachable for a diverse range of users.
Most appropriate sub-area of p5.js?
Feature request details
This feature is crucial for users working with 3D graphics, providing an easy and standardized way to determine the spatial extent of objects.
Example usage of
computeBoundingBox()
in a p5.js sketch can be :The text was updated successfully, but these errors were encountered: