本文整理汇总了Java中ch.fhnw.util.math.Vec3.toArray方法的典型用法代码示例。如果您正苦于以下问题:Java Vec3.toArray方法的具体用法?Java Vec3.toArray怎么用?Java Vec3.toArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ch.fhnw.util.math.Vec3
的用法示例。
在下文中一共展示了Vec3.toArray方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPoints
import ch.fhnw.util.math.Vec3; //导入方法依赖的package包/类
public float[] getPoints() {
if (points == null) {
List<Vec3> vertices = new ArrayList<>();
if (vertexCoherence) {
for (int i = 0; i < 20; i++)
subdividePoints(VERTICES[INDICES[i][0]], VERTICES[INDICES[i][1]], VERTICES[INDICES[i][2]], vertices, true, true, true, depth);
} else {
for (int i = 0; i < 20; i++)
subdividePoints(VERTICES[INDICES[i][0]], VERTICES[INDICES[i][1]], VERTICES[INDICES[i][2]], vertices, PFLAGS[i][0], PFLAGS[i][1],
PFLAGS[i][2], depth);
}
log.debug("# points:" + vertices.size());
points = Vec3.toArray(vertices);
}
return points;
}
示例2: getLines
import ch.fhnw.util.math.Vec3; //导入方法依赖的package包/类
public float[] getLines() {
if (lines == null) {
List<Vec3> vertices = new ArrayList<>();
if (vertexCoherence) {
for (int i = 0; i < 20; i++)
subdivideLines(VERTICES[INDICES[i][0]], VERTICES[INDICES[i][1]], VERTICES[INDICES[i][2]], vertices, true, true, true, depth);
} else {
for (int i = 0; i < 20; i++)
subdivideLines(VERTICES[INDICES[i][0]], VERTICES[INDICES[i][1]], VERTICES[INDICES[i][2]], vertices, LFLAGS[i][0], LFLAGS[i][1],
LFLAGS[i][2], depth);
}
log.debug("# lines:" + vertices.size() / 2);
lines = Vec3.toArray(vertices);
}
return lines;
}
示例3: getTriangles
import ch.fhnw.util.math.Vec3; //导入方法依赖的package包/类
public float[] getTriangles() {
if (triangles == null) {
List<Vec3> vertices = new ArrayList<>();
for (int i = 0; i < 20; i++)
subdivideTriangles(VERTICES[INDICES[i][0]], VERTICES[INDICES[i][1]], VERTICES[INDICES[i][2]], vertices, depth);
triangles = Vec3.toArray(vertices);
log.debug("# triangles:" + vertices.size() / 3);
}
return triangles;
}