checkTriangleVisibility method

bool checkTriangleVisibility(
  1. RenderableVertex v1,
  2. RenderableVertex v2,
  3. RenderableVertex v3
)

Implementation

bool checkTriangleVisibility(RenderableVertex v1, RenderableVertex v2, RenderableVertex v3) {
  if (v1.visible == true || v2.visible == true || v3.visible == true) return true;
  _points3[0] = v1.positionScreen.toVector3();
  _points3[1] = v2.positionScreen.toVector3();
  _points3[2] = v3.positionScreen.toVector3();
  return _clipBox.intersectsBox(_boundingBox.setFromPoints(_points3));
}