Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > General > Chit Chat
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.

Cut And Fill Areas

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2009, 03:04 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default Cut And Fill Areas

I wonder if somebody can help me

Image a piece of virgin ground against the side of a mountain. Against this mountain we need to construct a road. Now, part of the road will be cut into the mountain and the other part will be filled up. This is looking at a cross-section of the road.

Now here is my problem If I take a cross-section anywhere along the road, part of it will be in a cut condition and part of it will be in a fill condition. I need a fast way to determine the cut area and the fill area at any specific section.

I have the levels and offsets relative to the centerline of the original ground and also the levels and offsets of the design at that cross-section.

What I have done is to project the ground offsets onto the design line and calculate the design levels at each ground offset and then projected the design offsets onto the ground line and calculated the ground levels at each design offset.

What I ended up was a whole lot of squares between the design line and the ground line. This way I could calculate the area between the design line and the ground line and also determine whether it was in a cut or fill condition. It is fine on the PC, but on a handheld it is a bit slow.

I have thought about using the area by coordinates formula "((X1*Y2)+(Y1*X2))-((X2*Y3)+(Y2*X3))...etc. But this does not tell me whether I am in a cut or fill condition.

Any ideas?

Thanks
Michael
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill Image from response.GetStream cvanlith Questions (Windows Mobile) 3 11-22-2007 05:07 PM
How to fill in the value of a combobox in a database gonzamax Questions (Windows Mobile) 2 08-10-2007 08:53 AM


All times are GMT. The time now is 08:34 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0