12namespace enzo::utils {
19 std::shared_ptr<geo::Mesh> mesh;
20 std::vector<Offset> faceToOriginal;
41Vector3 polygonNormal(std::span<const Vector3> positions, std::span<const intT> polygonPoints);
52std::vector<std::array<Offset, 3>> earClipTriangleIndices(
const geo::Mesh& mesh);
64std::vector<std::array<Offset, 3>>
65earClipTriangleIndices(
const geo::Mesh& mesh, std::span<const Offset> faceOffsets);
93 : mesh_(mesh), mode_(mode)
103 std::vector<Vector3> tangents_;
Basic attribute, parameter, and node types for Enzo.
size_t Offset
enzo::Offset is the internal discontinuous index of an element in a given AttributeOwner.
Definition Types.h:100
Polygonal mesh primitive with point, vertex, and face attributes.
Tangents along a face in winding order.
Definition MeshUtils.h:90
std::span< const Vector3 > operator()(Offset faceOffset)
Returns the tangents for the given face.
Definition MeshUtils.cpp:210
A triangulated mesh paired with a mapping from each output triangle to its source face.
Definition MeshUtils.h:18