66 vertex.
tangent = normalize(mix(
v1.tangent,
v2.tangent, 0.5));
67 vertex.
normal = normalize(mix(
v1.normal,
v2.normal, 0.5));
decltype(std::declval< const Primitive * >() ->edges()) Type
Definition Utility.hpp:25
Vector2i vertices
Definition Edge.hpp:16
Definition PathVertex.hpp:14
double texCoord
Definition PathVertex.hpp:26
Vector3 normal
Unit length vector perpendicular to the path at this point.
Definition PathVertex.hpp:18
Vector3 tangent
Unit length vector parallel to the path at this point.
Definition PathVertex.hpp:24
Vector3 position
Definition PathVertex.hpp:20
Definition SubdividePath.hpp:21
EdgeGeneratorType< Path >::Type mEdges
Definition SubdividePath.hpp:43
Edge generate() const
Definition SubdividePath.hpp:25
Edges(const SubdividePath &path)
Definition SubdividePath.hpp:47
bool done() const noexcept
Definition SubdividePath.hpp:23
const SubdividePath * mPath
Definition SubdividePath.hpp:41
int i_
Definition SubdividePath.hpp:45
void next()
Definition SubdividePath.hpp:34
Definition SubdividePath.hpp:52
PathVertex generate() const
Definition SubdividePath.hpp:56
bool done() const noexcept
Definition SubdividePath.hpp:54
void next()
Definition SubdividePath.hpp:72
EdgeGeneratorType< Path >::Type mEdges
Definition SubdividePath.hpp:84
Vertices(const SubdividePath &path)
Definition SubdividePath.hpp:86
const SubdividePath * mPath
Definition SubdividePath.hpp:80
int vertexIndex_
Definition SubdividePath.hpp:82
Definition SubdividePath.hpp:19
Vertices vertices() const
Definition SubdividePath.hpp:99
Edges edges() const
Definition SubdividePath.hpp:97
SubdividePath(Path path)
Definition SubdividePath.hpp:91
Path mPath
Definition SubdividePath.hpp:102
Vector< PathVertex > mVertexCache
Definition SubdividePath.hpp:104
Definition AnyGenerator.hpp:12
SubdividePath< Path > subdividePath(Path path)
Definition SubdividePath.hpp:107
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
auto move(Vector3 position)
Moves a entity to the given position.
Definition Helpers.hpp:22
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25