Scripting/Plug-in/Operation APIs Merging

Today I finished modifying the CSGGroup and 3DCGroup objects such that 3DCGroup is essentially a sub-set of CSGGroup.

I think it went pretty well. It would be relatively straight forward to convert a script of plug-in using 3DCGroup into a plug-in that uses CSGGroup.

I have a few more object types to work on. I think the next few will be more straight forward.

I’m close to achieving what has been a long term goal: to merge the two 3DC APIs.

Today I finished modifying the CSGObject and 3DCObject objects such that 3DCObject is essentially a sub-set of CSGObject.

This will make it a relatively simple task to convert scripts into plug-ins or operations. It also will allow plug-ins that use the scripting interface (3DCObject) to use the 3DC Scene Graph (CSGObject), which is much faster.

There will remain differences due to differences in how VBScript (used for scripts) and Visual Basic work. Generally these will be easy to deal with.

For example the VBScript line:

Object.AddOptimizedPoint(1,0,1)

becomes in Visual Basic:

Object.AddOptimizedPoint(CSGMakeVector(1,0,1))

It’s a bit more complicated when there is a return value, but it’s still quite simple.

I just updated all the standard plug-ins and scripts supplied with 3DC to use the new interface. It went really quickly. It shouldn’t be much of a job upgrading existing plug-ins and scripts to the new format.

This time I even DOCUMENTED my changes. <!– s:) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!– s:) –>

[BLOCKQUOTE class=’ip-ubbcode-quote’][div class=’ip-ubbcode-quote-title’]quote:[/div][div class=’ip-ubbcode-quote-content’]This time I even DOCUMENTED my changes [/div][/BLOCKQUOTE]
Great news! <!– s:-) –><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile" /><!– s:-) –>

this is great news..faster is always better….thanks

You must be logged in to reply in this thread.

5 posts