Home
last modified time | relevance | path

Searched refs:nbSubSegments (Results 1 – 1 of 1) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DCurve.java67 public Curve(Vector3f[] controlPoints, int nbSubSegments) { in Curve() argument
68 this(new Spline(Spline.SplineType.CatmullRom, controlPoints, 10, false), nbSubSegments); in Curve()
77 public Curve(Spline spline, int nbSubSegments) { in Curve() argument
82 this.createCatmullRomMesh(nbSubSegments); in Curve()
85 this.createBezierMesh(nbSubSegments); in Curve()
88 this.createNurbMesh(nbSubSegments); in Curve()
97 private void createCatmullRomMesh(int nbSubSegments) { in createCatmullRomMesh() argument
98 float[] array = new float[((spline.getControlPoints().size() - 1) * nbSubSegments + 1) * 3]; in createCatmullRomMesh()
99 short[] indices = new short[(spline.getControlPoints().size() - 1) * nbSubSegments * 2]; in createCatmullRomMesh()
111 for (int j = 1; j < nbSubSegments; j++) { in createCatmullRomMesh()
[all …]