Browse Search Popular Register Upload Rules User list Login:
Search:
[LAG?] Bounding Box Creator for Polygons

Image:
screenshot of the scene

Author: CPJchute

Group: Default

Filesize: 11.16 kB

Date added: 2024-06-17

Rating: 5.4

Downloads: 545

Views: 185

Comments: 5

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

The object in this scene is a polygon, and this code ONLY WORKS FOR POLYGONS.

This scene can create a bounding box for any polygon, as long as it is very simple. (This limit exists because the code uses normal for loops.)
This works by finding the furthest +X, -X, +Y, and -Y points, then using those points to make another polygon in the shape of a box.
This could be a bit useful for mouseOver checks on polygons or something.

Another scene coming a bit after this!

Edit: Positioning doesn't work well for concave polygons.
Last edited at 2024/06/19 13:42:04 by CPJchute
Please log in to rate this scene
edit
Similar scenes
Title: Regular Polygon Creator
Rating: 5
Filesize: 29.04 kB
Downloads: 86
Comments: 0
Ratings: 1
Date added: 2024/07/13 23:06:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: polygons car
Rating: 5
Filesize: 26.98 kB
Downloads: 387
Comments: 0
Ratings: 1
Date added: 2010/05/31 23:51:58
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Polygons
Rating: 7.2857
Filesize: 221.81 kB
Downloads: 528
Comments: 0
Ratings: 7
Date added: 2008/09/19 00:48:46
Made with: Phun
Rating: rated 7.3
download
Title: Metralhadora 10
Rating: 6.6
Filesize: 0.87 MB
Downloads: 693
Comments: 1
Ratings: 5
Date added: 2008/10/19 01:23:29
Made with: Phun
Rating: rated 6.6
download
Title: Pose Creator
Rating: 5
Filesize: 25.79 kB
Downloads: 391
Comments: 0
Ratings: 1
Date added: 2025/08/17 12:45:41
Made with: Algodoo v2.2.4
Rating: rated 5
download
Title: Karate Kid
Rating: 6.1111
Filesize: 52.96 kB
Downloads: 972
Comments: 1
Ratings: 3
Date added: 2010/02/11 06:41:21
Made with: Phun
Rating: rated 6.1
download
Wow, your coding ability is quite impressive. Nice job! _o_
You could use the scaling tool to also see the bounding box for any shape, but this is cool too
Party box
Amazing script to generate bounding box :tup:
@Nugget123 You can't really use that in scripting, can you?