dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

[bug] rgl:::triangulateSimple fails with 3 Points #388

Closed discoleo closed 1 year ago

discoleo commented 1 year ago

rgl:::triangulateSimple fails with 3 Points

Note: polygon3d calls rgl:::triangulateSimple;

The variable good is defined only inside the while-loop: while ((m <- length(verts)) > 3) {...}

But this while-loop is skipped for 3 points, generating an error.