i just wanna snap the points from one group to the points of another.
i figured i could easely do this with a Fuse sop but it takes the position inbetween you can't specifie witch group you want to fuse 2.
so basic, so complicated ???????
7732 14 3- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
- jjstanley
- Member
- 124 posts
- Joined: July 2005
- Offline
- Pagefan
- Member
- 519 posts
- Joined:
- Offline
- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
i have got one group with points and another group.
basicly what i did was used a nearpoint() expression to find the nearest points of a object from another object.
now what i wanna do is i wanna take that nearest point and snap it to the point i used to find the nearest point
so basicly i just wanna snap the nearest point to the point.
i tryd using the fuse sop but it only consolates points.
the ray sop ray's just points to a surface not points to points.
the geomatry's are difrend from eachoter so i cant stick it in a point sop.
:cry: :cry: :cry: :cry:
hope that explains my problem. :shock:
basicly what i did was used a nearpoint() expression to find the nearest points of a object from another object.
now what i wanna do is i wanna take that nearest point and snap it to the point i used to find the nearest point
so basicly i just wanna snap the nearest point to the point.
i tryd using the fuse sop but it only consolates points.
the ray sop ray's just points to a surface not points to points.
the geomatry's are difrend from eachoter so i cant stick it in a point sop.
:cry: :cry: :cry: :cry:
hope that explains my problem. :shock:
- Simon
- Member
- 2199 posts
- Joined: July 2005
- Online
- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
Go to the Snap > Distance folder.
Snap Type can be Average Value, Least Point Number or Greatest Point Number.
Choose one of the latter two options to snap to the lower point number or the greater point number.
If you use always use the Fuse SOP in this way, you can save this as a permanent default. To do that, set up the Fuse SOP the way you want with the appropriate parameter settings, clear the group field then using the Gear in the parameters for this node, select the option: “Save As Permanent Defaults”. There are other options in the gear menu that should be self-evident. Another way is to create a new tool and call it say fuse_snap with your favourite parms set accordingly.
The answer is right there on the node parm interface. Most SOPs can work in many different ways. Also refer to the operator Help.
Snap Type can be Average Value, Least Point Number or Greatest Point Number.
Choose one of the latter two options to snap to the lower point number or the greater point number.
If you use always use the Fuse SOP in this way, you can save this as a permanent default. To do that, set up the Fuse SOP the way you want with the appropriate parameter settings, clear the group field then using the Gear in the parameters for this node, select the option: “Save As Permanent Defaults”. There are other options in the gear menu that should be self-evident. Another way is to create a new tool and call it say fuse_snap with your favourite parms set accordingly.
The answer is right there on the node parm interface. Most SOPs can work in many different ways. Also refer to the operator Help.
There's at least one school like the old school!
- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
Go to the Snap > Distance folder.As I wrote above, choose either lower point number or greater point number to snap to either A or B.
Snap Type can be Average Value, Least Point Number or Greatest Point Number.
Choose one of the latter two options to snap to the lower point number or the greater point number.
There's at least one school like the old school!
- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
- VisualCortexLab
- Member
- 509 posts
- Joined: July 2005
- Offline
attribute transfer?
cant try it right now but… just out of my mind…
create an attribute on group A which contains P …
attribute transfer with sample count to “1” … distance threshold to whatever you need… to group B …
give $ATTR ( vector) values to P to group B …
if point counts is the same.. should work somehow.. if it isnt.. just use a FuseSOP afterward…
just an idea.. might be totally useless though.
cheers
cant try it right now but… just out of my mind…
create an attribute on group A which contains P …
attribute transfer with sample count to “1” … distance threshold to whatever you need… to group B …
give $ATTR ( vector) values to P to group B …
if point counts is the same.. should work somehow.. if it isnt.. just use a FuseSOP afterward…
just an idea.. might be totally useless though.
cheers
JcN
VisualCortexLab Ltd :: www.visualcortexlab.com
VisualCortexLab Ltd :: www.visualcortexlab.com
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
If the points along the shared edge are closer together than the points on the other edge, then yes you will get points fusing along each shared edge as you increase the distance.
What you may want to try is PolyStitch. It is used to snap edges together. All you need to supply are the corner points of the two edges you wish to snap together. The first corner point found is the surface that won't move. The other edge will snap to this edge.
There are options to consolidate the points as well.
Then there is the Point SOP as explained earlier.
What you may want to try is PolyStitch. It is used to snap edges together. All you need to supply are the corner points of the two edges you wish to snap together. The first corner point found is the surface that won't move. The other edge will snap to this edge.
There are options to consolidate the points as well.
Then there is the Point SOP as explained earlier.
There's at least one school like the old school!
- anakin78z
- Member
- 80 posts
- Joined: July 2005
- Offline
There's many ways to skin a cat… but that's gross, so I use expressions instead:
You're already using the nearpoint expression… just take it one step further:
Append a point sop to the points that you want to move (snap). In this example, the object that the points should snap to is called ‘goal’.
Position: point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,0)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,1)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,2)
nearpoint finds the closest point, and the point expression finds the position of that point and applies it to the current point being processed.
-z
You're already using the nearpoint expression… just take it one step further:
Append a point sop to the points that you want to move (snap). In this example, the object that the points should snap to is called ‘goal’.
Position: point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,0)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,1)
point(“../goal”,nearpoint(“../goal”,$TX,$TY,$TZ),“P”,2)
nearpoint finds the closest point, and the point expression finds the position of that point and applies it to the current point being processed.
-z
- Tamis
- Member
- 58 posts
- Joined: Sept. 2007
- Offline
thank you anakin78z that did the tric !!
now if i may, one more question ???
i'm tryng to now optimize a surface using dissolve.
i wanna disolve surtan points that have a atribute with the value 1.
i dont wan't to dissovle the points that have a value of 0.
here comes the tricky part:
i want to do this operation on a per-point basis and not for all the points at the same time because, if do this operation on all the points at the same time it wil first delete the points then calculates a new surface.
what i wanna do is delete a point calculate the surface and then move to the next point.
this way i hopefully can optimize the mesh keeping the surface intact.
(few, that was a hell lot easy'r to explain than the find nearest points, inhearit position thing.)
now if i may, one more question ???
i'm tryng to now optimize a surface using dissolve.
i wanna disolve surtan points that have a atribute with the value 1.
i dont wan't to dissovle the points that have a value of 0.
here comes the tricky part:
i want to do this operation on a per-point basis and not for all the points at the same time because, if do this operation on all the points at the same time it wil first delete the points then calculates a new surface.
what i wanna do is delete a point calculate the surface and then move to the next point.
this way i hopefully can optimize the mesh keeping the surface intact.
(few, that was a hell lot easy'r to explain than the find nearest points, inhearit position thing.)
- jason_iversen
- Member
- 12502 posts
- Joined: July 2005
- Online
You might be able to find a solution if you use the ForEach SOP stuff - where you can iterate over your geometry at your own discretion.
Check it out, its NEAT.
Check it out, its NEAT.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
-
- Quick Links