Beispiel #1
0
void LineStrip_BestPoint(const Matrix4& local2view, const VertexCb* vertices, const std::size_t size, SelectionIntersection& best) {
  Vector4 clipped[2];
  for(std::size_t i = 0; (i + 1) < size; ++i)
  {
    const std::size_t count = local2view.clipLine(vertices[i].vertex, vertices[i + 1].vertex, clipped);
    BestPoint(count, clipped, best, eClipCullNone);
  }
}
Beispiel #2
0
void Line_BestPoint(const Matrix4& local2view, const VertexCb vertices[2], SelectionIntersection& best) {
  Vector4 clipped[2];
  const std::size_t count = local2view.clipLine(vertices[0].vertex, vertices[1].vertex, clipped);
  BestPoint(count, clipped, best, eClipCullNone);
}