Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
obj_io.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#pragma once
9
11#include <momentum/math/mesh.h>
12
13#include <span>
14
15namespace momentum {
16
45[[nodiscard]] Mesh loadObj(const filesystem::path& filepath);
46
52[[nodiscard]] Mesh loadObj(std::span<const std::byte> bytes);
53
54} // namespace momentum
MeshT< float > Mesh
Definition fwd.h:20
Mesh loadObj(const filesystem::path &filepath)
Loads a mesh from a Wavefront OBJ file.
Definition obj_io.cpp:220