tylermorganwall / rayrender

A pathtracer for R. Build and render complex scenes and 3D data visualizations directly from R
http://www.rayrender.net
622 stars 42 forks source link

Much faster group_objects() #30

Closed yvanrichard closed 2 years ago

yvanrichard commented 2 years ago

group_objects() is currently painfully slow when the number of objects is large.

This simple change greatly increases the execution speed (by around 100 times on my data).

tylermorganwall commented 2 years ago

Thanks! Made a few style changes to fit into the rest of the package.