Yep, that's a fair point :)
> On 31 Jul 2017, at 10:00, Brent McPherson <brent.mcpher...@autodesk.com> > wrote: > > Hi Andy, > > In Andrews' code just calling the Softimage mesh methods once and saving that > result for reuse would probably eliminate his performance issues. > > What you are suggesting is the next level when you find that the data stored > in the Softimage containers is not in a format where it can be accessed > quickly. Great advice but there are easier things to fix in Andrew's code > first IMO. > > Cheers. > -- > Brent > > From: softimage-boun...@listproc.autodesk.com > [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Andy Nicholas > Sent: 29 July 2017 20:26 > To: Official Softimage Users Mailing List. > https://groups.google.com/forum/#!forum/xsi_list > <softimage@listproc.autodesk.com> > Subject: Re: EdgeRing ALG for n-gons > > Hi Andrew, > I believe what Brent is suggesting is to request the data from Softimage > once, cache it in whatever way makes the most sense for your application, and > then run your algorithms on that. When I wrote the “Taut” plugin for > Softimage, I built all the adjacency information and stored it using STL > containers (maps, etc.). It meant that I could optimise the data structures > to Taut's functionality and it generally ran pretty fast. > > Andy > > > On 29 Jul 2017, at 07:43, Andrew Prostrelov <prostre...@gmail.com> wrote: > > Can you tell a bit more about optimisation and efficient calls pls. > I have lots of question about XSI objects and classes best practices. > If i understand your suggestion right i should alwayse preffer XSI reference > containers (EdgeRefArray etc) to value containers like CLongArray, > CValueArray etc. Or not ? > I also often use curMesh.GetEdges().GetItem() aproach to get one specific > component instance with known index. > I suppose this way also is slow. What should i do in this situation ? > > ------ > Softimage Mailing List. > To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with > "unsubscribe" in the subject, and reply to confirm. > > ------ > Softimage Mailing List. > To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with > "unsubscribe" in the subject, and reply to confirm.
------ Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.