Tag points by volume mesh?

Skip to first unread message

Matt Lowery

Jan 20, 2012, 10:43:22 AM1/20/12
to soft...@listproc.autodesk.com
Hi all.

I'm hoping of you fine people has a script that will tag all the points
on one poly mesh that are inside another poly mesh. I'm also hoping that
you'll share said script...


Fabricio Chamon

Jan 20, 2012, 12:38:08 PM1/20/12
to soft...@listproc.autodesk.com

what I like to do is to define a selection logic inside ICE and transform it to component selection through this script attached.

usage: define an attribute called "select" in your object's icetree (boolean per point, edge or polygon) > select object and run.
(sometimes you have to run it twice, in the second time it will work. not sure why, maybe it has to do with some attribute initialization thing)

in your case the (very simple) logic would be a point in volume defining the attribute.(image follows)


Francois Lord

Jan 20, 2012, 12:46:37 PM1/20/12
to soft...@listproc.autodesk.com
Thanks Fabricio. I think I will use this often.

Olivier Jeannel

Jan 20, 2012, 1:08:59 PM1/20/12
to soft...@listproc.autodesk.com
Hello list,
again a basic question :
Within Ice, I'm trying to get the U value along a curve ( abit like with
strand). Start of curve=0, end of curve=1.

I blindly tried with UVtoLocation, but I don't really understand how and
what it does.

Is there any sample somewhere on how to plug things ?

Thank you,


Grahame Fuller

Jan 20, 2012, 1:26:40 PM1/20/12
to soft...@listproc.autodesk.com
UV to Location gives you a location on the curve if you feed it a U value, which I think is the opposite of what you want.

It sounds like you've got a location and want to get the U value. In that case, plug the location into the Source of a Get Data node and use it to look up PointU.



Peter Agg

Jan 20, 2012, 1:34:27 PM1/20/12
to soft...@listproc.autodesk.com
Hi Oliver,

From what you've said I think that 'UV to Location' is doing the opposite of what you want - with that node you give it a UV co-ordinate and get a location back. Whereas you want a way to get a Location which then gives you access to the UV data.

I'm not sure what your setup is, but you could do it with a 'Get Closest Location' node and read the 'PointU' attribute using that. I've done a quick test which gets the closest U co-ordinate to a null as an example.


Matt Lowery

Jan 20, 2012, 2:15:41 PM1/20/12
to soft...@listproc.autodesk.com
Cool, thanks Fabricio... very helpful.

Olivier Jeannel

Jan 20, 2012, 1:46:49 PM1/20/12
to soft...@listproc.autodesk.com
works super :)

Thank you !
Reply all
Reply to author
0 new messages