setFromBufferAttribute

fun setFromBufferAttribute(attribute: AttributeLike, count: Int): Box3

Expands this box to enclose the first count 3D positions in attribute.

three.js reads attribute.count; the AttributeLike seam does not expose a count, so the vertex count is passed explicitly as count. A BufferAttribute type can supply its own .count at the call site.

Return

A reference to this box.