Hello Marcus,

Marcus Lindblom wrote:
>> may I send you an example of the clip plane capping problem as a 
>> contribution to the OpenSG tutorials. Probably it needs some clean up but I 
>> think it is worth the effort. Could you please take a look. Comments are 
>> welcome. Currently it is only OpenSG 1.8. I did not have had time to dive 
>> deeper into the OpenSG 2.0 sea.
>>
>> Again thank you for the help with this topic.
> 
> Short note. Do you know about the CPEdit/CPEditAll macros in 1.8?

oh, right forgot to mention that, I changed the code to use those for 
the 1.8 version.

> They 
> basically do what your FCEditGuard does, with pros and cons, since the 
> variable name is autogenerated.
>   * no need for {} blocks/scopes.
>   * needs a variable as parameter, function call return value is not 
> possible.

There were cases in the code where the CPEdit/CPEditAll macro would not 
have worked, because members of a struct where modified, for those cases 
  you can use the CPEditor class directly (which is very similar to 
FCEditGuard):

CPEditor guard(details._planeTrafoNode);

> For 2.0 one could just define it as empty (unless it's already done...)

hm, good point, I don't think we have it in 2 at all right now, should 
probably have it, guarded by OSG_1_COMPAT ...

        Thanks,
                Carsten

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to