14#include <lagrange/SurfaceMesh.h>
15#include <lagrange/scene/Scene.h>
16#include <lagrange/scene/SimpleScene.h>
17#include <lagrange/types/TransformOptions.h>
22namespace lagrange::scene {
34template <
typename Scalar,
typename Index>
47template <
typename Scalar,
typename Index>
62template <
typename Scalar,
typename Index>
63SurfaceMesh<Scalar, Index> scene_to_mesh(
65 const TransformOptions& transform_options = {},
66 bool preserve_attributes =
true);
79template <
typename Scalar,
typename Index>
80std::vector<SurfaceMesh<Scalar, Index>> scene_to_meshes(
82 const TransformOptions& transform_options = {});
99template <
typename Scalar,
typename Index>
116template <
typename Scalar,
typename Index>
125template <
typename Scalar,
typename Index>
129 std::vector<SurfaceMesh<Scalar, Index>>
meshes;
146template <
typename Scalar,
typename Index>
Simple scene container for instanced meshes.
Definition SimpleScene.h:62
Result structure for scene to meshes and materials conversion.
Definition scene_convert.h:127
std::vector< SurfaceMesh< Scalar, Index > > meshes
List of meshes with transforms applied.
Definition scene_convert.h:129
std::vector< std::vector< ElementId > > material_ids
List of material IDs for each mesh.
Definition scene_convert.h:132