libigl v2.5.0
Loading...
Searching...
No Matches
Hit.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4// 2014 Christian Schüller <schuellchr@gmail.com>
5//
6// This Source Code Form is subject to the terms of the Mozilla Public License
7// v. 2.0. If a copy of the MPL was not distributed with this file, You can
8// obtain one at http://mozilla.org/MPL/2.0/.
9#ifndef IGL_HIT_H
10#define IGL_HIT_H
11
12namespace igl
13{
16 // TODO: template on floating point type
17 struct Hit
18 {
20 int id;
22 int gid;
25 float u,v;
28 float t;
29 };
30}
31#endif
Definition AABB.h:17
Reimplementation of the embree::Hit struct from embree1.0.
Definition Hit.h:18
float t
parametric distance so that pos = origin + t * dir
Definition Hit.h:28
float u
barycentric coordinates so that pos = V.row(F(id,0))*(1-u-v)+V.row(F(id,1))*u+V.row(F(id,...
Definition Hit.h:25
int id
primitive id
Definition Hit.h:20
float v
Definition Hit.h:25
int gid
geometry id (not used)
Definition Hit.h:22