I understand the problem, I had to work with combined curves and found difficult (impossible?) to access subcurves. Looks like an area of ICE that could be improved a lot by exposing the right attribute. Good luck and keep us posted with your discoveries.
On Tue, Jun 11, 2013 at 5:10 PM, Matt Lind <[email protected]> wrote: > You only need that method when comparing PointLocators across multiple > subsurfaces to make decisions. In my case I only need the nearest location > on the surface mesh. NURBSSurfaceMesh.GetClosestSurfacePosition2() returns > the subsurface index as part of the PointLocator object.**** > > ** ** > > In the case of ICE, the subsurface index can be specified in the UV to > Location node to apply a location on a surface mesh, but there is no way to > read the subsurface index from a PointLocator on a surface mesh – that is > the problem. I spent most of last night at home scratching my head on > various ways to determine the subsurface index. I tried using group > geometry, metadata in weightmaps and so forth. Bottom line is no matter > what workaround I attempted, I needed the subsurface index to be delivered > from the PointLocator. The only option in ICE is to use the Reinterpret > Location node, but it doesn’t expose the subsurface index which makes it > impossible to apply a UV offset as I need to do.**** > > ** ** > > Since the ICE SDK doesn’t expose locators, looks like I’ll have to use C++ > or a scripted operator.**** > > ** ** > > Matt**** > > ** ** > > ** ** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Vincent Fortin > *Sent:* Tuesday, June 11, 2013 12:48 PM > *To:* softimage > *Subject:* Re: getting subsurface index**** > > ** ** > > Looks like this > method<http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/index.html?url=si_om/NurbsSurfaceMesh.GetSubSurfaceIndexArray.html,topicNumber=si_om_NurbsSurfaceMesh_GetSubSurfaceIndexArray_html>would > be useful to you if it was implemented in ICE. It'd be perfect with > the UV to Location node.**** > > ** ** > > It's the opposite issue with polygons. You can extract the polygon index > from the location but it's missing the polygon UV.**** > > I was hoping to be able to build a location from scratch using those two > attributes. But I couldn't find anything about polygon UVs, even in the sdk. > **** > > ** ** > > Maybe Grahame knows?**** > > ** ** > > On Mon, Jun 10, 2013 at 7:22 PM, Matt Lind <[email protected]> > wrote:**** > > And to follow – I wish the subsurface index wasn’t encapsulated in the > location. It should be exposed as a port on the reinterpret location and > UV to location nodes so you can perform one-to-many and many-to-one > remappings. Reinterpret location should expose a UV coordinate port as > well.**** > > **** > > **** > > Matt**** > > **** > > **** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 3:16 PM**** > > > *To:* [email protected] > *Subject:* RE: getting subsurface index**** > > **** > > I need to remap with an offset in the UV coordinate. Reinterpret doesn’t > allow for that.**** > > **** > > Matt**** > > **** > > **** > > **** > > **** > > *From:* [email protected] [ > mailto:[email protected]<[email protected]>] > *On Behalf Of *Grahame Fuller > *Sent:* Monday, June 10, 2013 12:53 PM > *To:* [email protected] > *Subject:* RE: getting subsurface index**** > > **** > > An ICE location on a surface mesh essentially consists of the subsurface > index and the UV parameters on that subsurface, in other words, the > subsurface index is built in to the location. So, you should be able to > simply use Reinterpret Location to New Geometry. Is that not working? *** > * > > **** > > gray**** > > **** > > *From:* [email protected] [ > mailto:[email protected]<[email protected]>] > *On Behalf Of *Matt Lind > *Sent:* Monday, June 10, 2013 03:03 PM > *To:* [email protected] > *Subject:* ICE: getting subsurface index**** > > **** > > I have to write a tool which remaps a position from a surface mesh onto > another surface mesh. I am hoping to use ICE, but am running into a > barrier – how to obtain the subsurface index of a surface mesh which a > location was found.**** > > **** > > Anybody?**** > > **** > > **** > > Matt**** > > **** > > **** > > ** ** >

