> Here, either declaration should work.  This is just a US v. Canadian
> thing.

LOL, Got it, eh? ;-)

> In your code, I'd suggest replacing 1 and 4 with aDomain.Size\4 and
> aRange.Size\4.

I think you've hit on my error here. Dividing by 4 gives me 2 and 8
respectively, not correct.

Here is a bit of the code I'm duplicating.

float domain[2];
float range[8];

domain[0] = 0;
domain[1] = 1;

For domain, in order to get the single values in to Rb I have,

    aDomain = New MemoryBlock(2 * 4)
    aDomain.SingleValue(0) = 0.0
    aDomain.SingleValue(1 * 4) = 1.0

 
> Finally, the MemoryBlock infoPtr needs to live for as long as it's
> needed -- are you keeping a reference to it in a property somewhere?

Yes, the docs mention this. :-) Again, I'm getting the first part of the
shade object (geometry) to draw in an appropriate axial manner, but the
second aspect, color, is wrong. So, if you can give me a clue how to get two
floats in a MemoryBlock of size 4, I'm all ears. Thank you Charles, Norman.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to