How to use the LineCurve function from three

Find comprehensive JavaScript three.LineCurve code examples handpicked from public code repositorys.

65
66
67
68
69
70
71
72
73
74
  return {scene, group};
}

const ShapeFromJSONObject = function(JSONObject) {
  const s = _.extend(new THREE.Shape(), JSONObject);
  s.curves = _.map(s.curves, (c) => _.extend(new THREE.LineCurve(), c));
  for (const [i, c] of s.curves.entries()){
    c.v1 = new THREE.Vector2(c.v1.x, c.v1.y);
    c.v2 = new THREE.Vector2(c.v2.x, c.v2.y);
  }
fork icon0
star icon0
watch icon2

+ 5 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)