HighMap library (C++)
Loading...
Searching...
No Matches
scene.hpp
Go to the documentation of this file.
1/* Copyright (c) 2023 Otto Link. Distributed under the terms of the GNU General
2 Public License. The full license is in the file LICENSE, distributed with
3 this software. */
4
15#pragma once
16#include <string>
17#include <vector>
18
19#include "highmap/array.hpp"
25
26namespace hmap
27{
28
66bool export_usd(const std::string &fname,
67 const Array &elevation = {},
68 const std::vector<Forest> &forests = {},
69 const std::vector<RockField> &rock_fields = {},
70 const std::vector<Cloud> &clouds = {},
71 const std::vector<Path> &paths = {},
72 MeshType mesh_type = MeshType::TRI,
73 float elevation_scaling = 0.2f,
74 const std::string &texture_fname = "",
75 const std::string &normal_map_fname = "",
76 float max_error = 5e-4f,
77 bool fit_boundaries = false);
78
79} // namespace hmap
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Header file for 3D asset export functionalities.
Array class, helper to manipulate 2D float array with "(i, j)" indexing.
Definition array.hpp:31
Definition of the Cloud class for manipulating sets of 2D points.
Definition opencv.hpp:20
bool export_usd(const std::string &fname, const Array &elevation={}, const std::vector< Forest > &forests={}, const std::vector< RockField > &rock_fields={}, const std::vector< Cloud > &clouds={}, const std::vector< Path > &paths={}, MeshType mesh_type=MeshType::TRI, float elevation_scaling=0.2f, const std::string &texture_fname="", const std::string &normal_map_fname="", float max_error=5e-4f, bool fit_boundaries=false)
Exports a composite scene (terrain, forests, rock fields, clouds, and paths) to Universal Scene Descr...
Definition export_usd.cpp:344
MeshType
Enumeration for different mesh types.
Definition asset.hpp:35
@ TRI
Triangle elements.
Definition asset.hpp:37
Path class for manipulating and analyzing paths in 2D space.