private void InitRefEdge() { refEdge = mesh.GetLinearEdge(); if (refEdge != null) { refEdgeLength = refEdge.GetLength(); } }