LineMesh 使用问题

我在使用LineMesh画圆时 接口如何圆滑一些
 
var displayObject = mainPanel.GetChild("Line" + 1).asImage.displayObject;
LineMesh line3 = displayObject.graphics.GetMeshFactory<LineMesh>();
line3.lineWidth = 3;
line3.roundEdge = true;

GPathPoint[] gPathPoints = new GPathPoint[eegPowers.GetLength(0);

for (int j = 0; j < 8; j++)
{
gPathPoints[j] = new GPathPoint(new Vector2(eegPowers[j, 6].x, eegPowers[j, 6].y));

}
gPathPoints[8] = new GPathPoint(new Vector2(eegPowers[0, 6].x, eegPowers[0, 6].y));

line3.path.Create(gPathPoints);
displayObject.graphics.SetMeshDirty();
{6}]XD[HE[(AZQS(7LQY)GM.png
已邀请:

谷主

赞同来自:

这明显是曲线的划分和控制点都没搞对,算法问题。

要回复问题请先登录注册