4#ifndef _SCENEPIC_LOOP_SUBDIV_STENCIL_H_
5#define _SCENEPIC_LOOP_SUBDIV_STENCIL_H_
38 VertexBuffer
apply(
const ConstVertexBufferRef vertices)
const;
59 bool project_to_limit =
false);
62 TriangleBuffer m_triangles;
63 SparseMatrix m_subdiv;
This class enables efficient Loop subdivision of triangle meshes.
Definition: loop_subdivision_stencil.h:21
static LoopSubdivisionStencil create(const ConstTriangleBufferRef triangles, int steps=1, bool project_to_limit=false)
Creates a new stencil by subdividing the provided triangles.
const ConstTriangleBufferRef triangles() const
Returns the triangles of the subdivided mesh.
LoopSubdivisionStencil(TriangleBuffer triangles, SparseMatrix subdiv)
Constructor.
std::size_t vertex_count() const
The number of vertices in the subdivided mesh.
std::size_t triangle_count() const
The number of triangles in the subdivided mesh.
VertexBuffer apply(const ConstVertexBufferRef vertices) const
Applies the stencil to a vertex buffer.
Definition: audio_track.h:14