Search found 16 matches

by eths
Mon May 12, 2014 8:36 pm
Forum: 3D Programming
Topic: FreeMesh and 3d Lines
Replies: 3
Views: 2236

Re: FreeMesh and 3d Lines

DetachNodeObject(#node, MeshID(0)) works! Thank you!

Nonetheless, this does not appear to be necessary with other meshes when running on OSX.
by eths
Sun May 11, 2014 6:22 pm
Forum: 3D Programming
Topic: cloth in Ogre 3d
Replies: 8
Views: 4216

Re: cloth in Ogre 3d

I'm afraid it doesn't work on OSX.
by eths
Sun May 11, 2014 6:04 pm
Forum: 3D Programming
Topic: FreeMesh and 3d Lines
Replies: 3
Views: 2236

FreeMesh and 3d Lines

On the OSX version of PureBasic, I have problems releasing 3d lines (CreateLine3D) with the FreeMesh function after having included them in a node. Freeing 3d line mesh causes the program to crash. This only occurs, AFAIK, with 3d lines. I've mentioned this in the OSX Bugs forum, but haven't ...
by eths
Mon May 05, 2014 7:14 am
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

These are subjective qualities and cannot be exactly determined. For me, elegance is how readable complex code can be 6 months or years later.
My advice is to think how you want to process the data you import and then design your structures accordingly.

Very true.


Are these scalar quantities ...
by eths
Mon May 05, 2014 7:10 am
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

I don't think this would be so simple with a list or map.
Well, you would have elegant code using ForEach with a List, but for sure the task seems complex.

Clumsy strike me as more fitting, in this case, than iterating the two indexes of a two dimensional array. I'll probablly use a single ...
by eths
Mon May 05, 2014 12:02 am
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

IdeasVacuum wrote:You might be able to use separate arrays e.g. Dim aRaditionPointX(iTotal), Dim aRaditionPointY(iTotal)
I know, but is it elegant & graceful?

;-)
by eths
Mon May 05, 2014 12:01 am
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

Why not turn that around and use a Linked List of a structure? Each new List element would consist of a structure - Have a single structure containing all variables for each data element you are reading from the file. Where is the Radiation Point data in the file? Can't see it in your sample? Just ...
by eths
Sun May 04, 2014 11:37 pm
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

redim does not work because I need to change the size both dimensions...

Time to rethink... ;-)
by eths
Sun May 04, 2014 11:29 pm
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Re: Defining dynamic arrays in a Structure?

Thanks. I'll try doing this...

I was hoping I could assign an array to an instance of the structure, instead of rediming the array in the structure instance and then assigning the values "directly" in the structure.
by eths
Sun May 04, 2014 11:07 pm
Forum: Coding Questions
Topic: Defining dynamic arrays in a Structure?
Replies: 11
Views: 3273

Defining dynamic arrays in a Structure?

How can one define (and use) an array element of unknown size in a structure ?

I may be a bit dense but I can't figure out how to do something like this in PureBasic gracefully:


Structure Gain
vert.d
hori.d
total.d
EndStructure

Structure Polarization
axialratio.d
tilt.d
sense.s ...
by eths
Thu Mar 18, 2004 4:13 pm
Forum: Feature Requests and Wishlists
Topic: Gadgets, Focus, Tab Order etc.
Replies: 9
Views: 2440

Are you developing on Linux?
Up to now no, but as soon as the programm reaches a healthy level, I will
be porting to Linux. In the long run it should run on Windows and Linux.
by eths
Thu Mar 18, 2004 3:53 pm
Forum: Feature Requests and Wishlists
Topic: Gadgets, Focus, Tab Order etc.
Replies: 9
Views: 2440

Personally I don't see this as a need in the core language, but that's just my opinion.

I'm not sure that I agree, but I do see your point.


You can GetGadgetText and count the CFLF characters now.

True - but somehow it just feels messy and slow. I would have thought that the gadget has line ...
by eths
Thu Mar 18, 2004 9:06 am
Forum: Feature Requests and Wishlists
Topic: Gadgets, Focus, Tab Order etc.
Replies: 9
Views: 2440

Agreed, it'd be nice for all gadgets to have focus events accessible easily. String gadgets do from straight PB, others it's a fairly easy windows callback. Let me know if you want the code (it's all over the forum I'm sure)

For Windows this may be true (yes, I'ld like to have the code), but what ...
by eths
Wed Mar 17, 2004 12:00 pm
Forum: Feature Requests and Wishlists
Topic: Gadgets, Focus, Tab Order etc.
Replies: 9
Views: 2440

I think this is limited by windows
And what about Linux?
by eths
Wed Mar 17, 2004 11:27 am
Forum: Feature Requests and Wishlists
Topic: Gadgets, Focus, Tab Order etc.
Replies: 9
Views: 2440

1) How many bytes can the editor gadget handle?

2) How many lines of text can the editor gadget handle?
Information like this really belongs in the docs.