Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: keeping track of children  (Read 706 times)
kwazai
Community Member
*
Posts: 168


« on: March 12, 2008, 09:57:12 AM »

I have been keeping track of info about my meshes in a datagrid(dataset) so that I could easily dump it to an excel comma delimited format as a 'save' format. I need to be able to keep track of as many as eight children for any given mesh and have about decided to add a seperate grid for tracking child meshes (ie, mesh number, child mesh number 1, 2 ,3, etc.) as there is some parametric type calcs for the child meshes. does anybody know of an easier way (perhaps type,or object method) (with sample code).
Mike
Logged

murphys law-28th corollary- if there are five ways for something to go wrong and you circumvent all five , a sixth will promptly develop.
Rynus_Rein
Community Member
*
Posts: 1010


« Reply #1 on: March 14, 2008, 11:22:42 AM »

you'd probably end up keeping the child records up-to-date yourself.
Logged

Rynus Rein
Current Project: MapX Live, Society3D
newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #2 on: March 14, 2008, 11:57:48 AM »

Have you tried to couple with only one female at a time? I found it easier to keep track of your children that way...

Jokes aside, I think the only way will be to keep track yourself in arrays or collections. You can always store info in TVMesh.Tag but there is only so much you want to write in one string of text.
Logged

Dan
Customers
Community Member
*****
Posts: 707


WWW
« Reply #3 on: March 19, 2008, 07:13:39 AM »

Newborn summarized your options well but not knowing what language you use makes it hard to provide code.
One simple way of utilizing the mesh tag is the handy split method (.net) that converts a delimited string into an array. A couple of simple helper functions to pack and unpack the list of children could easily encapsulate the mesh.tag.

Personally I pack all my children off to bording school.
Logged
kwazai
Community Member
*
Posts: 168


« Reply #4 on: March 19, 2008, 07:28:52 AM »

I'm using vb.net.  I don't really want to use the .tag for an array. looks like the simplest would be an array. I did a search on the forum looking at mesh classes and was wondering how hard it would be to encapsulate my current meshes inside a class. Can someone post code for a 'mesh' class. I have visual studio just prefer vb and can convert from there-sorry to ramble.
back in my vb6 days I used a couple structures for file saving/opening. Is a class similar.?

mike
Logged

murphys law-28th corollary- if there are five ways for something to go wrong and you circumvent all five , a sixth will promptly develop.
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks