Home
last modified time | relevance | path

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

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DSpline.java26 private List<Vector3f> controlPoints = new ArrayList<Vector3f>(); field in Spline
55 …public Spline(SplineType splineType, Vector3f[] controlPoints, float curveTension, boolean cycle) { in Spline() argument
59 for (int i = 0; i < controlPoints.length; i++) { in Spline()
60 Vector3f vector3f = controlPoints[i]; in Spline()
61 this.controlPoints.add(vector3f); in Spline()
84 …public Spline(SplineType splineType, List<Vector3f> controlPoints, float curveTension, boolean cyc… in Spline() argument
89 this.controlPoints.addAll(controlPoints); in Spline()
101 public Spline(List<Vector4f> controlPoints, List<Float> nurbKnots) { in Spline() argument
111 this.weights = new float[controlPoints.size()]; in Spline()
114 for(int i=0;i<controlPoints.size();++i) { in Spline()
[all …]
DCurveAndSurfaceMath.java31 List<Vector3f> controlPoints = nurbSpline.getControlPoints(); in interpolateNurbs() local
34 int controlPointAmount = controlPoints.size(); in interpolateNurbs()
65 …public static void interpolate(float u, float v, List<List<Vector4f>> controlPoints, List<Float>[]… in interpolate() argument
69 int vControlPointsAmount = controlPoints.size(); in interpolate()
70 int uControlPointsAmount = controlPoints.get(0).size(); in interpolate()
73 Vector4f controlPoint = controlPoints.get(i).get(j); in interpolate()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DSurface.java24 private List<List<Vector4f>> controlPoints; //space control points and their weights field in Surface
40 private Surface(List<List<Vector4f>> controlPoints, List<Float>[] nurbKnots, in Surface() argument
42 this.validateInputData(controlPoints, nurbKnots, uSegments, vSegments); in Surface()
46 this.controlPoints = controlPoints; in Surface()
68 …public static final Surface createNurbsSurface(List<List<Vector4f>> controlPoints, List<Float>[] n… in createNurbsSurface() argument
70 …Surface result = new Surface(controlPoints, nurbKnots, uSegments, vSegments, basisUFunctionDegree,… in createNurbsSurface()
96 …CurveAndSurfaceMath.interpolate(u, v, controlPoints, knots, basisUFunctionDegree, basisVFunctionDe… in buildSurface()
143 return controlPoints; in getControlPoints()
151 return controlPoints.size(); in getUControlPointsAmount()
159 return controlPoints.get(0) == null ? 0 : controlPoints.get(0).size(); in getVControlPointsAmount()
[all …]
DCurve.java67 public Curve(Vector3f[] controlPoints, int nbSubSegments) { in Curve() argument
68 this(new Spline(Spline.SplineType.CatmullRom, controlPoints, 10, false), nbSubSegments); in Curve()
157 List<Vector3f> controlPoints = spline.getControlPoints(); in createBezierMesh() local
160 Vector3f vector3f = controlPoints.get(currentControlPoint); in createBezierMesh()
172 Vector3f vector3f = controlPoints.get(currentControlPoint); in createBezierMesh()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/curves/
DBezierCurve.java101 List<Vector3f> controlPoints = new ArrayList<Vector3f>(bezierPoints.length * 3); in getControlPoints() local
103controlPoints.add(new Vector3f(bezierPoints[i][0][0], bezierPoints[i][0][1], bezierPoints[i][0][2]… in getControlPoints()
104controlPoints.add(new Vector3f(bezierPoints[i][1][0], bezierPoints[i][1][1], bezierPoints[i][1][2]… in getControlPoints()
105controlPoints.add(new Vector3f(bezierPoints[i][2][0], bezierPoints[i][2][1], bezierPoints[i][2][2]… in getControlPoints()
107 return controlPoints; in getControlPoints()
DCurvesHelper.java228 List<Vector3f> controlPoints = bezierCurve.getControlPoints(); in loadBezierCurve() local
232 controlPoints.add(controlPoints.get(i)); in loadBezierCurve()
236 controlPoints.remove(0); in loadBezierCurve()
237 controlPoints.remove(controlPoints.size() - 1); in loadBezierCurve()
240 Spline spline = new Spline(SplineType.Bezier, controlPoints, 0, false); in loadBezierCurve()
298 List<List<Vector4f>> controlPoints = new ArrayList<List<Vector4f>>(pntsV); in loadNurb() local
314 controlPoints.add(uControlPoints); in loadNurb()
318 controlPoints.add(controlPoints.get(k)); in loadNurb()
325 Spline nurbSpline = new Spline(controlPoints.get(0), knots[0]); in loadNurb()
336 …Surface nurbSurface = Surface.createNurbsSurface(controlPoints, knots, resolu, resolv, orderU, ord… in loadNurb()
[all …]