PDA

View Full Version : curve on surface


Starrider
01-24-2008, 06:13 PM
hi!
is there any way to get a curve from two uv-points off a surface? this would be so helpful!!
any ideas?
cheers!

hibigibees
01-24-2008, 07:01 PM
hi there,

let say you have selected 2 uv's and you want to create a curve between the vertex components of those 2 respective uvs ... if this is the case, this is the algo >>

{
// note: i have avoided the error checking part //
string $uvs[] = `ls -sl -fl`;
string $verts[] = `polyListComponentConversion -fuv -tv $uvs (http://forums.cgsociety.org/)`;

float $p1[] = `pointPosition $verts[0]`;
float $p2[] = `pointPosition $verts[1]`;

string $curve = `curve -d 1 -p $p1[0] $p1[1] $p1[2] -p $p2[0] $p2[1] $p2[2] -k 0 -k 1` ;

print ("\nCurve Name is : " + $curve);
}

--sriram

CGTalk Moderation
01-24-2008, 07:01 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.