Looking at the Low Level API section in the reference manual, I'd quess the correct call would actually be something like: var faceSelection = R3Get(sdsObject, R3SUBDIVA_FaceSelection, R3TID_INTEGER, R3TNS_ARRAY); I'm not sure of the typeid and array flag, they might very well be wrong. It might also need some additional flags (like R3TNF_READONLY and R3TNF_BYVALUE).
On 17/12/2007, Timo Mikkolainen <[EMAIL PROTECTED]> wrote: > Looking at r3subdiv.h, it does have these: > R3SUBDIVA_FaceSelection, > R3SUBDIVA_EdgeSelection, > R3SUBDIVA_VertexSelection > that apparently hold the selection data. > I'd imagine these can be (somehow) accessed with R3GetAttrs(), but I > haven't tested it yet. > I could only find examples of this on the SDK side, I don't even know > if the function exists on the JS side. If it does, I have no idea what > to pass as params (using the SDK it would be something like > R3GetAttrs(sdsObject, R3SUBDIVA_FaceSelection, &faceSelection, > R3RA_Done);). > > On 16/12/2007, Juha Sunnari <[EMAIL PROTECTED]> wrote: > > Eh, nevermind, further investigation reveals that there are methods in > > r3prim.js > > called SELECTNEXT, SELECTUP, SELECTPREV, etc... > > > > Juha Sunnari kirjoitti: > > > That's what I would like to know, too. In the sdk it looks like > > > adjacency information for edges > > > and faces are stored in R3EDGELISTNODE and R3FACEPEREDGENODE. > > > structs defined in r3subdiv.h. However I haven't really looked into > > > how to manipulate these in js or > > > if it is even possible at the moment. Maybe the RS folks could give > > > some information on this. :) > > > > > > Timo Mikkolainen kirjoitti: > > >> I'm trying to create a generic function library for SDS manipulation, > > >> starting with modifying the handle selection (e.g. selecting an edge > > >> loop or -ring, selecting connected faces etc.). Going through all > > >> handles and checking which ones are selected is slow and hack-ish and > > >> I can't access the selection order. I take it that the selected > > >> handles (with the correct order) are stored as tags in the sds object, > > >> but I don't know how to access them through JS, any ideas? > > >
