CARLA
 
载入中...
搜索中...
未找到
Simplification.h
浏览该文件的文档.
1// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "carla/geom/Mesh.h" // 包含Mesh类的定义
10
11namespace carla {
12namespace geom {
13
15 public:
16
17 Simplification() = default; // 默认构造函数
18
19 Simplification(float simplificationrate) /// 带参数的构造函数,用于初始化简化率
20 : simplification_percentage(simplificationrate) // 初始化简化率
21 {}
22
23 float simplification_percentage; // 存储简化率
24
25 void Simplificate(const std::unique_ptr<geom::Mesh>& pmesh); // 声明简化函数
26 };
27
28} // namespace geom
29} // namespace carla
Simplification(float simplificationrate)
带参数的构造函数,用于初始化简化率
void Simplificate(const std::unique_ptr< geom::Mesh > &pmesh)
CARLA模拟器的主命名空间。
Definition Carla.cpp:139