#include <iostream>
#include <fstream>
#include <algorithm>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <map>
#include <vector>
#include <string>
#include <math.h>
#include <float.h>
Go to the source code of this file.
Classes | |
struct | Simplify::Ref |
class | Simplify::SimplificationObject |
class | SymetricMatrix |
struct | Simplify::Triangle |
struct | vec3f |
struct | vector3 |
struct | Simplify::Vertex |
Namespaces | |
Simplify | |
Macros | |
#define | loopi(start_l, end_l) for (int i = start_l; i < end_l; ++i) |
#define | loopi(start_l, end_l) for (int i = start_l; i < end_l; ++i) |
#define | loopj(start_l, end_l) for (int j = start_l; j < end_l; ++j) |
#define | loopk(start_l, end_l) for (int k = start_l; k < end_l; ++k) |
Enumerations | |
enum | Simplify::Attributes { Simplify::NONE, Simplify::NORMAL = 2, Simplify::TEXCOORD = 4, Simplify::COLOR = 8 } |
Functions | |
vec3f | barycentric (const vec3f &p, const vec3f &a, const vec3f &b, const vec3f &c) |
vec3f | interpolate (const vec3f &p, const vec3f &a, const vec3f &b, const vec3f &c, const vec3f attrs[3]) |
double | min (double v1, double v2) |
#define loopi | ( | start_l, | |
end_l | |||
) | for (int i = start_l; i < end_l; ++i) |
Definition at line 27 of file Simplify.h.
Referenced by Simplify::SimplificationObject::compact_mesh(), Simplify::SimplificationObject::load_obj(), Simplify::SimplificationObject::simplify_mesh(), Simplify::SimplificationObject::simplify_mesh_lossless(), SymetricMatrix::SymetricMatrix(), Simplify::SimplificationObject::update_mesh(), and Simplify::SimplificationObject::write_obj().
#define loopi | ( | start_l, | |
end_l | |||
) | for (int i = start_l; i < end_l; ++i) |
Definition at line 27 of file Simplify.h.
#define loopj | ( | start_l, | |
end_l | |||
) | for (int j = start_l; j < end_l; ++j) |
Definition at line 28 of file Simplify.h.
Referenced by Simplify::SimplificationObject::compact_mesh(), Simplify::SimplificationObject::load_obj(), Simplify::SimplificationObject::simplify_mesh(), Simplify::SimplificationObject::simplify_mesh_lossless(), and Simplify::SimplificationObject::update_mesh().
#define loopk | ( | start_l, | |
end_l | |||
) | for (int k = start_l; k < end_l; ++k) |
Definition at line 29 of file Simplify.h.
Referenced by Simplify::SimplificationObject::flipped(), Simplify::SimplificationObject::update_mesh(), Simplify::SimplificationObject::update_triangles(), and Simplify::SimplificationObject::update_uvs().
Definition at line 267 of file Simplify.h.
References vec3f::dot().
Referenced by interpolate().
vec3f interpolate | ( | const vec3f & | p, |
const vec3f & | a, | ||
const vec3f & | b, | ||
const vec3f & | c, | ||
const vec3f | attrs[3] | ||
) |
Definition at line 284 of file Simplify.h.
References barycentric(), vec3f::x, vec3f::y, and vec3f::z.
Referenced by Simplify::SimplificationObject::update_uvs().
double min | ( | double | v1, |
double | v2 | ||
) |
Definition at line 294 of file Simplify.h.
Referenced by Simplify::SimplificationObject::calculate_error(), carla::geom::Math::Clamp(), vec3f::clamp(), carla::traffic_manager::MotionPlanStage::CollisionHandling(), carla::road::Map::CreateRtree(), carla::traffic_manager::DeviationDotProduct(), carla::road::Map::GenerateChunkedMesh(), ACityMapGenerator::GenerateRoads(), FHeightMapData::GetHeight(), carla::traffic_manager::MotionPlanStage::GetLandmarkTargetVelocity(), MapGen::getRotation(), carla::nav::Navigation::GetWalkerTransform(), MeshReconstruction::MarchCube(), carla::image::ColorConverter::LogarithmicLinear::operator()(), carla::rss::RssRestrictor::RestrictVehicleControl(), carla::rss::RssCheck::RssCheck(), carla::traffic_manager::PID::RunStep(), FSparseHighDetailMap::SaveMap(), carla::traffic_manager::Parameters::SetGlobalPercentageSpeedDifference(), carla::traffic_manager::Parameters::SetPercentageSpeedDifference(), util::buffer::to_hex_string(), carla::traffic_manager::MotionPlanStage::Update(), FSparseHighDetailMap::Update(), Simplify::SimplificationObject::update_mesh(), and Simplify::SimplificationObject::update_triangles().