for (int j = 0; j <= uSegments; ++j) { Vector3f interpolationResult = new Vector3f(); CurveAndSurfaceMath.interpolate(u, v, controlPoints, knots, basisUFunctionDegree, basisVFunctionDegree, interpolationResult); vertices.add(interpolationResult); u += deltaU;
for (int j = 0; j <= uSegments; ++j) { Vector3f interpolationResult = new Vector3f(); CurveAndSurfaceMath.interpolate(u, v, controlPoints, knots, basisUFunctionDegree, basisVFunctionDegree, interpolationResult); vertices.add(interpolationResult); u += deltaU;
for (int j = 0; j <= uSegments; ++j) { Vector3f interpolationResult = new Vector3f(); CurveAndSurfaceMath.interpolate(u, v, controlPoints, knots, basisUFunctionDegree, basisVFunctionDegree, interpolationResult); vertices[arrayIndex++] = interpolationResult; u += deltaU;