Template Class Triangulation

Inheritance Relationships

Base Type

Class Documentation

template<typename P>
class IfcGeom::Representation::Triangulation : public IfcGeom::Representation::Representation

Public Functions

const std::string &id() const
const std::vector<P> &verts() const
const std::vector<int> &faces() const
const std::vector<int> &edges() const
const std::vector<P> &normals() const
const std::vector<P> &uvs() const
const std::vector<int> &material_ids() const
const std::vector<Material> &materials() const
Triangulation(const BRep &shape_model)
~Triangulation()

Public Static Functions

std::vector<P> box_project_uvs(const std::vector<P> &vertices, const std::vector<P> &normals)

Generates UVs for a single mesh using box projection.

Todo:

Very simple impl. Assumes that input vertices and normals match 1:1.