Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Need suggections for Data structure
Need suggections for Data structure [message #60266] Sat, 28 October 2023 08:08 Go to next message
deep is currently offline  deep
Messages: 263
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 Go to previous message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 220
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

Previous Topic: Chat GPT wrote this
Next Topic: Do we have a QTF to HTML converter
Goto Forum:
  


Current Time: Sat Apr 20 11:41:06 CEST 2024

Total time taken to generate the page: 1.83893 seconds