我正在学习使用 JMonkey api 构建表面。该类Surface
有一个方法
createNurbsSurface(controlPoints, nurbKnots, uSegments, vSegments, basisUFunctionDegree, basisVFunctionDegree).
我试图做一个简单的例子来理解论点的含义。但是,我无法初始化第二个参数:
List<Float>[] nurbKnots
我试过了:
List<Float>[] nurbKnots = {new ArrayList<Float>()};
但它抱怨你不能创建一个通用数组List<Float>.
有人可以告诉我如何初始化这个nurbKnots.