Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ideas for placing shapes around a circle
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015215
Message ID:
01015245
Views:
28
Hey Craig, Thanks for the reply !!
Anyway I was thinking about figuring sits with a square, I can say that all the groups of sits can be rapresented as there were no unused place among them , as I can show empty spaces (corridors for example) as the space from
two distincted sectors.
I need to provide a visual layout of the seats on a form and I 'd like to lighten the sold sits by clicking on them, that's hy I was thinking about a collection of shapes.


>The area for a circle can be figured by multiplying the circles radius^2 * 3.14159 (the radius is the distance from the center of the cirle to its circumference)
>
>The area of your seats? Would you consider the seats a square or rectangular? If so, the area would be length * width. If the seats (or the space they will occupy) is a more complex shape then finding the area becomes more complex. You can determine the area of a complex shape with an infinte (well almost anyways) number of points using the shoestring algorithm - I've wrote one of these in VFP awhile back, so if you have need of it let me know and I'll post it. For now though let's say the seats are just a square or rectangular area...
>
>So, using the above you have the area of the circle and if you divide that by the area of the seats you will have a decent approximation of the number of seats the circle will hold. There are some caveats to this, such as wasted space (obviously squares/rectangles will not fit neatly withing a circle). At this point some more information might be useful in taking this farther and becoming more accurate as to seating. Would the seats be in straight rows or curved? Will there be any aisles in amongst the seats that need to be taken into consideration? Is one of the requirements to figure out the best way to align and position the seats within the circle so as to reduce "seating" wastage?
>
>Also, you mentioned polypoints in your post, so I'm wondering... Do you need to provide a visual layout of the seats on a form or within a report or something?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform