Hi,
i am trying to extrude boundary loop of a mesh. when the object's rotation is zero, extrude came good, but whenever i rotated the object, extrude direction will be different. The black line is the center normal of that edge loop.
MeshBoundaryLoops loops2 = new MeshBoundaryLoops(mesh);
EdgeLoop eLoop = new EdgeLoop(mesh);
eLoop.Edges = loops2[1].Edges;
eLoop.Vertices = loops2[1].Vertices;
float extrudeLen = 1f;
new MeshExtrudeLoop(mesh, eLoop)
{
PositionF = ((Func<Vector3d, Vector3f, int, Vector3d>)((v, n, vid) => v + extrudeLen * planeNormal))
}.Extrude();
testObj.GetComponent<MeshFilter>().mesh = g3UnityUtils.DMeshToUnityMesh(mesh);
Hi,
i am trying to extrude boundary loop of a mesh. when the object's rotation is zero, extrude came good, but whenever i rotated the object, extrude direction will be different. The black line is the center normal of that edge loop.