createCurve method

dynamic createCurve(
  1. dynamic relationships,
  2. dynamic geometryMap
)

Implementation

createCurve(relationships, geometryMap) {
  var geometry = relationships.children.reduce((geo, child) {
    if (geometryMap.has(child["ID"])) geo = geometryMap.get(child["ID"]);

    return geo;
  }, null);

  // FBX does not list materials for Nurbs lines, so we'll just put our own in here.
  var material = LineBasicMaterial({"color": 0x3300ff, "linewidth": 1});
  return Line(geometry, material);
}