17 #include "core/vector.hpp" 18 #include "core/matrix.hpp" 116 return _normal^_tangent;
198 mutable vector _global_position;
199 mutable vector _global_normal;
200 mutable vector _global_tangent;
202 mutable bool _c_position, _c_normal, _c_tangent;
Object material.
Definition: material.hpp:39
const vector & tangent() const
A tangent of the surface at this position.
Definition: element.hpp:107
void setMaterial(Material *m)
Attach a material to the element.
Definition: element.hpp:148
const vector & globalPosition() const
Global position of the surface element.
Definition: element.cpp:90
vector uv() const
Get uv mapping of the element.
Definition: element.cpp:65
const vector & globalNormal() const
Global normal of the surface element.
Definition: element.cpp:82
const vector & position() const
Position of the element on the surface.
Definition: element.hpp:89
const vector & globalTangent() const
Global tangent of the surface element.
Definition: element.cpp:98
3D vector
Definition: vector.hpp:28
Geometric entity.
Definition: geometry.hpp:39
const Material * material() const
The surface material.
Definition: element.hpp:136
element & operator=(const element &)
operator =
Definition: element.cpp:49
Geometric surface element unit.
Definition: element.hpp:43
const vector & normal() const
Normal of the element on the surface.
Definition: element.hpp:98
vector globalBinormal() const
Global binormal of the surface element.
Definition: element.hpp:180
vector binormal() const
A binormal of the surface at this point.
Definition: element.hpp:115
element()
Default constructor.
Definition: element.cpp:7
~element()
Destructor.
Definition: element.cpp:40
const Geometry * geometry() const
The geometry owner.
Definition: element.hpp:124