Elpin
10-29-2009, 10:22 PM
Hi,
I'm having a bit of trouble with welding editable poly vertices.
I use this command to weld the two given vertices together:
$.weldVerts 76 875 [100,0,100]It works nicely and the two vertices (76 and 875) are welded together, but the problem is that the new welded vertex is not at the given coordinates (100,0,100). It's the coordinates from the Absolute:World coordinates for the 76 vertex I see in 3dsmax.
As I understand it, there are two weldVerts() functions. The one I use is from an Editable Poly interface and the other one is from a polyOp class.
Editable Poly interface:
<bool>weldVerts <index>vertex1 <index>vertex2 <point3>destinationPointpolyOp class:
polyOp.weldVerts <Poly poly> <int vert1> <int vert2> <point3 location> node:<node=unsupplied>
Now if I use the polyOp one then it works great, but I miss the bool return value (true on success) of the Editable Poly one so I can't really use it.
Is there a way how I can force the <bool>weldVerts() function to place the new vertex into a correct place or can I somehow get a success/fail report if the polyOp.weldVerts function welded the two vertices or not?
Any of the two solutions could solve my problem...
Thanks for any help guys...
I'm having a bit of trouble with welding editable poly vertices.
I use this command to weld the two given vertices together:
$.weldVerts 76 875 [100,0,100]It works nicely and the two vertices (76 and 875) are welded together, but the problem is that the new welded vertex is not at the given coordinates (100,0,100). It's the coordinates from the Absolute:World coordinates for the 76 vertex I see in 3dsmax.
As I understand it, there are two weldVerts() functions. The one I use is from an Editable Poly interface and the other one is from a polyOp class.
Editable Poly interface:
<bool>weldVerts <index>vertex1 <index>vertex2 <point3>destinationPointpolyOp class:
polyOp.weldVerts <Poly poly> <int vert1> <int vert2> <point3 location> node:<node=unsupplied>
Now if I use the polyOp one then it works great, but I miss the bool return value (true on success) of the Editable Poly one so I can't really use it.
Is there a way how I can force the <bool>weldVerts() function to place the new vertex into a correct place or can I somehow get a success/fail report if the polyOp.weldVerts function welded the two vertices or not?
Any of the two solutions could solve my problem...
Thanks for any help guys...
