Simple triangle Shape, used in TriangleMesh.
More...
#include <DrawShape.hpp>
|
| Triangle (const Transform3D *o2w, const Transform3D *w2o, bool ro, TriangleMesh *m, size_t n) |
| Triangle Constructor. More...
|
|
virtual BBox | ObjectBound () const |
| ObjectBound is the shape bounding box. More...
|
|
virtual BBox | WorldBound () const |
| WorldBound is the Shape's Bounding box transformed by the ObjectToWorld transform matrix. More...
|
|
virtual bool | Intersect (const Ray &ray, float *tHit, float *rayEpsilon, DifferentialGeometry *dg) const |
| Intersect returns geometric information about a single rayshape intersection corresponding to the first intersection, if any, in the [mint, maxt] parametric range along the ray. More...
|
|
void | GetUVs (float uv[3][2]) const |
| GetUVS. More...
|
|
float | Area () const |
| Area calculates the surface Area. More...
|
|
virtual void | GetShadingGeometry (const Transform3D &obj2world, const DifferentialGeometry &dg, DifferentialGeometry *dgShading) const |
| GetShadingGeometry. More...
|
|
| Shape (const Transform3D *o2w, const Transform3D *w2o, bool ro) |
| Shape Constructor. More...
|
|
virtual bool | CanIntersect () const |
| CanIntersect indicates that a shape can compute ray intersections, so only shapes that are nonintersectable need to override this method. More...
|
|
virtual void | Refine (Vector< std::shared_ptr< Shape > > &refined) const |
| Refine is a method that splits the shape into a group of new shapes, some of which may be intersectable and some of which may need further refinement. More...
|
|
virtual bool | IntersectP (const Ray &ray) const |
| IntersectP is a predicate function that determines whether or not an intersection occurs, without returning any details about the intersection itself. More...
|
|
float | Area () const |
| Area calculates the surface Area. More...
|
|
template<class O > |
void | Print (O &os) const |
| Print assings Shape information to stream. More...
|
|
|
static uint32_t | nextShapeId |
| nextShapeId is a static attribute that is incremented at each Shape Construction. More...
|
|
Simple triangle Shape, used in TriangleMesh.
Definition at line 283 of file DrawShape.hpp.
Triangle Constructor.
- Parameters
-
o2w | Object to World transform matrix. |
w2o | World to Object transform matrix. |
ro | indicates if the surface normal should be reversed. |
m | is a reference to the parent TriangleMesh |
n | is the triangle index in the mesh. |
float Bial::Triangle::Area |
( |
| ) |
const |
Area calculates the surface Area.
- Returns
- surface area.
GetShadingGeometry.
- Parameters
-
Reimplemented from Bial::Shape.
void Bial::Triangle::GetUVs |
( |
float |
uv[3][2] | ) |
const |
Intersect returns geometric information about a single rayshape intersection corresponding to the first intersection, if any, in the [mint, maxt] parametric range along the ray.
- Parameters
-
- Returns
Reimplemented from Bial::Shape.
virtual BBox Bial::Triangle::ObjectBound |
( |
| ) |
const |
|
virtual |
ObjectBound is the shape bounding box.
- Returns
Implements Bial::Shape.
virtual BBox Bial::Triangle::WorldBound |
( |
| ) |
const |
|
virtual |
WorldBound is the Shape's Bounding box transformed by the ObjectToWorld transform matrix.
- Returns
Reimplemented from Bial::Shape.
size_t* Bial::Triangle::v |
The documentation for this class was generated from the following file: