Titan  v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
stlparser.h File Reference
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <cassert>
#include <cmath>

Go to the source code of this file.

Classes

class  titan::stl::Vec3D
 
struct  titan::stl::Triangle
 
struct  titan::stl::BBox
 
struct  titan::stl::stlFile
 

Namespaces

 titan
 
 titan::stl
 

Functions

double titan::stl::dot (const Vec3D &a, const Vec3D &b)
 
Vec3D titan::stl::cross (const Vec3D &v1, const Vec3D &v2)
 
Vec3D titan::stl::operator+ (const Vec3D &v1, const Vec3D &v2)
 
Vec3D titan::stl::operator- (const Vec3D &v1, const Vec3D &v2)
 
Vec3D titan::stl::operator* (const double x, const Vec3D &v)
 
Vec3D titan::stl::operator* (const Vec3D &v, const double x)
 
Vec3D titan::stl::operator* (const Vec3D &v1, const Vec3D &v2)
 
Vec3D titan::stl::operator/ (const Vec3D &v, const double x)
 
Vec3D titan::stl::operator/ (const Vec3D &v1, const Vec3D &v2)
 
std::ostream & titan::stl::operator<< (std::ostream &strm, const Vec3D &v)
 
bool titan::stl::intersect (const Vec3D &point, const Vec3D &ray, const Triangle &t, double EPSILON)
 
double titan::stl::randDouble (double min, double max)
 
Vec3D titan::stl::parseVec (std::ifstream &file)
 
std::ostream & titan::stl::operator<< (std::ostream &strm, Triangle &t)
 
stlFile titan::stl::parseSTL (std::string path)