Feedback

What's your question?

  • Current version

    Back

    Edges are composed of two vertices.. say that your edge (e.g edge number 10) is composed vertices number 3 and 9, then in the API calling:

    MFnMesh mesh(path); int vertexList[2]; mesh.getEdgeVertices(edgeNumber, vertexList);

    vertexList now contains {3,9}. Say you want your split to happen at 0.1 (as a fraction of the length of edge 10) from vertex 3 then vertex 3 == vertexList[0] at which point you can just call:

    polySplit -ep 10 0.1;

    but if (!3 == vertex[0]) then you’ll want to call:

    polySplit -ep 10 0.9;

    Let me know if this is not clear enough and I’ll provide you with some basic working API code.

    By: shyalb

or Back