setWeightAttribute method

dynamic setWeightAttribute(
  1. dynamic name
)

Implementation

setWeightAttribute(name) {
  this.weightAttribute = name ? this.geometry.getAttribute(name) : null;

  return this;
}