Hello,
I am having some trouble with a procedure I thought would be straight forward. I would like to poke a polygon face, then select the new central vertice and move it a user defined distance in the direction of its normal. Because the faces associated with the new vertex were created from the poke they should share the same normal as the single original face which was poked. This should save me from having to average the face normals that are returned with something like polyNormalPerVertex -q -xyz. Instead I would only need to query the normals of one of the vertex faces (any will work) and then move the vertice along that normal. I have started in this way (this is after the poking which is all working fine).
//convert selected vertice to its faces
string $mySelection[] = ls -sl;
string $vFaces[] = polyListComponentConversion -fv -tf ($mySelection[0]);
//cheat here b/c all faces have the same normal; so call one face's normals
string $faceNorm[] = polyInfo -faceNormals ($vFaces[0]);
print ($faceNorm);
// Result: FACE_NORMAL 3: 0.000000 0.000000 -1.000000
But am struggling with where to go from here. I am having trouble knowing what to do with the face normal I have queried - I think it may need to be unitized? It doesn't seem right that its all 0,s and 1's.
Does anyone have experience with this or can anyone recommend a good place to start - since I think I may be going at it the wrong way...
thanks