Home » Community » Coffee corner » Need suggections for Data structure
Need suggections for Data structure [message #60266] |
Sat, 28 October 2023 08:08 |
|
deep
Messages: 265 Registered: July 2011 Location: Bangalore
|
Experienced Member |
|
|
Hi,
I want to process text motion sequences.
I plan to process text and convert it to data struct
I want to hold this sequential data for further processing.
For each type I have pre-defined data struct.
--- some data types ---
Point3D - x,y,z
Line - P1,p2
Arc - p1,p2,pCenter, cw/ccw
point & normal - x,y,z,i,j,k
Equation - length = sqrt( (x2-x1)^2 + (y2-y1)^2)
-----
I want suggestions for the sequenced data.
Line to be deleted from memory after processing.
Warm Regards
Deepak
|
|
|
Re: Need suggections for Data structure [message #60300 is a reply to message #60266] |
Tue, 14 November 2023 19:36 |
jjacksonRIAB
Messages: 223 Registered: June 2011
|
Experienced Member |
|
|
ValueArray could be what you're looking for, it can store heterogeneous sequences. Another way would be a homogeneous array of type float and then a separate metabuffer (also an array of type float) that indicates the operation/number of items to consume, winding, etc. If you plan on sending this information to a GPU for further processing, then the homogeneous array of floats + metabuffer might be your best option.
[Updated on: Tue, 14 November 2023 19:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Sep 19 02:19:31 CEST 2024
Total time taken to generate the page: 0.02645 seconds
|