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.

TIN Model

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2010, 02:06 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default TIN Model

Hi Agraham

I am using your delauney dll in my surveying program. But now I need your help please.

I can identify a triangle by clicking\tapping inside the triangle. How do I go about deleting the selected triangle from the array?

Thanks
Michael
Reply With Quote
  #2 (permalink)  
Old 01-23-2010, 03:24 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Not easily as arrays are fixed sizes in .NET. You need to copy the required array elements to a new array of the required length and re-assign the new arrray to your existing triangle array. This copying is likely to be fairly slow in Basic4ppc as I think your arrays are quite large.

However I have for a while now had an unposted version of my http://www.basic4ppc.com/forum/addit...html#post31631 which can manipulate arrays as byte buffers. I have just posted it so take a look at that. In the archive is BufferDemo.sbp which shows how to remove an entry from a multi-dimensional array. This is likely to be an order of magnitude, if not more, faster than copying individual array elements.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #3 (permalink)  
Old 01-23-2010, 04:27 PM
ceaser's Avatar
Basic4ppc Veteran
 
Join Date: May 2008
Location: Paarl, South Africa
Posts: 306
Default

Thank you very much Agraham.

Regards
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
Coloring Tin Model ceaser Chit Chat 2 12-06-2008 10:06 AM


All times are GMT. The time now is 07:53 PM.


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